All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webit.script.loaders.impl.resources.StringResource Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
// Copyright (c) 2013, Webit Team. All Rights Reserved.
package webit.script.loaders.impl.resources;

import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import webit.script.loaders.Resource;

/**
 *
 * @author Zqq
 */
public class StringResource implements Resource {

    private final String text;

    public StringResource(String text) {
        this.text = text;
    }

    public boolean isModified() {
        return false;
    }

    public Reader openReader() throws IOException {
        return new StringReader(this.text);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy