org.ujmp.core.util.io
Class IntelligentFileReader

java.lang.Object
  extended by java.io.Reader
      extended by org.ujmp.core.util.io.IntelligentFileReader
All Implemented Interfaces:
Closeable, Readable

public class IntelligentFileReader
extends Reader


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
IntelligentFileReader(File file)
           
IntelligentFileReader(InputStream inputStream)
           
IntelligentFileReader(Reader reader)
           
IntelligentFileReader(String file)
           
IntelligentFileReader(URLConnection connection)
           
 
Method Summary
 void close()
           
 int getLineNumber()
           
static String load(File filename)
           
static String load(InputStream stream)
           
static String load(Reader reader)
           
static String load(String filename)
           
 int read(char[] cbuf, int off, int len)
           
static byte[] readBytes(File file)
           
 String readLine()
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.