webit.script.loaders.impl.resources.StringResource Maven / Gradle / Ivy
// 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