public static final String readText(InputStream in) throws IOException { return readText(in, null); } public static final List<String> readLines(String s) throws IOException {
public static final String[] readLinesArray(String s) throws IOException { List<String> v=readLines(s); String ret[]=new String[v.size()]; int i=0; for (String line : v) { ret[i++]=line; } return ret; } }
public static String toString(Object object) { StringBufferOutputStream out = new StringBufferOutputStream(); print(object, new PrintStream(out), false, false,"", null); return out.toString(); }
public void write(byte b[]) { SwingUtilities.invokeLater(new Appender(new String(b))); } public void write(byte b[],int s,int l) {
@Override public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException { return ReadText.readText(url); }
public static final String[] readLinesArray(String s) throws IOException { List<String> v=readLines(s); String ret[]=new String[v.size()]; int i=0; for (String line : v) { ret[i++]=line; } return ret; } }
public static String toString(Object object) { StringBufferOutputStream out = new StringBufferOutputStream(); print(object, new PrintStream(out), false, false,"", null); return out.toString(); }
public void write(int i) { SwingUtilities.invokeLater(new Appender(new String(new byte[]{(byte)i}))); } public void write(byte b[]) {
@Override public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException { return ReadText.readText(url); }
public static final List<String> readLines(String s) throws IOException { return readLines(new FileReader(s)); } public static final List<String> readLines(URL u) throws IOException {
public void write(byte b[],int s,int l) { SwingUtilities.invokeLater(new Appender(new String(b,s,l))); } }
public static final String readText(InputStream in) throws IOException { return readText(in, null); } public static final List<String> readLines(String s) throws IOException {
public static final List<String> readLines(String s) throws IOException { return readLines(new FileReader(s)); } public static final List<String> readLines(URL u) throws IOException {
public void write(byte b[],int s,int l) { SwingUtilities.invokeLater(new Appender(new String(b,s,l))); } }
boolean load() { if (!persistentFile.exists()) return false; sourceTextArea.setText(ReadText.readText(persistentFile)); return true; } void save() {
public static final List<String> readLines(InputStream in) throws IOException { if (in == null) return null; List<String> r = readLines(new InputStreamReader(in)); in.close(); return r; } public static final List<String> readLines(Reader r) throws IOException {
public void write(byte b[]) { SwingUtilities.invokeLater(new Appender(new String(b))); } public void write(byte b[],int s,int l) {
public static final List<String> readLines(URL u) throws IOException { InputStream in = u.openStream(); List<String> r = readLines(in); in.close(); return r; } public static final List<String> readLines(InputStream in) throws IOException {
public static final List<String> readLines(InputStream in) throws IOException { if (in == null) return null; List<String> r = readLines(new InputStreamReader(in)); in.close(); return r; } public static final List<String> readLines(Reader r) throws IOException {
public static final List<String> readLines(URL u) throws IOException { InputStream in = u.openStream(); List<String> r = readLines(in); in.close(); return r; } public static final List<String> readLines(InputStream in) throws IOException {