org.ujmp.core.util.io
Class IntelligentFileReader
java.lang.Object
java.io.Reader
org.ujmp.core.util.io.IntelligentFileReader
- All Implemented Interfaces:
- Closeable, Readable
public class IntelligentFileReader
- extends Reader
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntelligentFileReader
public IntelligentFileReader(String file)
IntelligentFileReader
public IntelligentFileReader(InputStream inputStream)
IntelligentFileReader
public IntelligentFileReader(Reader reader)
IntelligentFileReader
public IntelligentFileReader(File file)
IntelligentFileReader
public IntelligentFileReader(URLConnection connection)
throws IOException
- Throws:
IOException
readLine
public String readLine()
close
public void close()
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
getLineNumber
public int getLineNumber()
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException
load
public static String load(String filename)
load
public static String load(File filename)
load
public static String load(InputStream stream)
load
public static String load(Reader reader)
readBytes
public static byte[] readBytes(File file)
Copyright © 2010. All Rights Reserved.