![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.preproc.ReadLineSimple Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.preproc;
import net.sourceforge.plantuml.text.StringLocated;
public class ReadLineSimple implements ReadLine {
private final StringLocated data;
private final String error;
private int current = 0;
public ReadLineSimple(StringLocated s2, String error) {
this.data = s2;
this.error = error;
}
public void close() {
}
public StringLocated readLine() {
if (current > 0) {
return null;
}
current++;
// return new CharSequence2Impl(line, null);
// return CharSequence2Impl.errorPreprocessor(data, error);
return data.withErrorPreprocessor(error);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy