railo.commons.io.reader
Class ByteArrayInputStreamReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by railo.commons.io.reader.ByteArrayInputStreamReader
All Implemented Interfaces:
Closeable, Readable

public final class ByteArrayInputStreamReader
extends InputStreamReader

InputStream Reader for byte arrays, support mark


Constructor Summary
ByteArrayInputStreamReader(byte[] barr, String charsetName)
           
ByteArrayInputStreamReader(ByteArrayInputStream bais, String charsetName)
           
ByteArrayInputStreamReader(String str, String charsetName)
           
 
Method Summary
 void close()
           
 String getEncoding()
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(char[] cbuf)
           
 int read(char[] cbuf, int offset, int length)
           
 int read(CharBuffer target)
           
 boolean ready()
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayInputStreamReader

public ByteArrayInputStreamReader(ByteArrayInputStream bais,
                                  String charsetName)
                           throws IOException
Throws:
IOException

ByteArrayInputStreamReader

public ByteArrayInputStreamReader(byte[] barr,
                                  String charsetName)
                           throws IOException
Throws:
IOException

ByteArrayInputStreamReader

public ByteArrayInputStreamReader(String str,
                                  String charsetName)
                           throws IOException
Throws:
IOException
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStreamReader
Throws:
IOException
See Also:
InputStreamReader.close()

getEncoding

public String getEncoding()
Overrides:
getEncoding in class InputStreamReader
See Also:
InputStreamReader.getEncoding()

read

public int read()
         throws IOException
Overrides:
read in class InputStreamReader
Throws:
IOException
See Also:
InputStreamReader.read()

read

public int read(char[] cbuf,
                int offset,
                int length)
         throws IOException
Overrides:
read in class InputStreamReader
Throws:
IOException
See Also:
InputStreamReader.read(char[], int, int)

ready

public boolean ready()
              throws IOException
Overrides:
ready in class InputStreamReader
Throws:
IOException
See Also:
InputStreamReader.ready()

mark

public void mark(int readAheadLimit)
          throws IOException
Overrides:
mark in class Reader
Throws:
IOException
See Also:
Reader.mark(int)

markSupported

public boolean markSupported()
Overrides:
markSupported in class Reader
See Also:
Reader.markSupported()

read

public int read(CharBuffer target)
         throws IOException
Specified by:
read in interface Readable
Overrides:
read in class Reader
Throws:
IOException
See Also:
Reader.read(java.nio.CharBuffer)

read

public int read(char[] cbuf)
         throws IOException
Overrides:
read in class Reader
Throws:
IOException
See Also:
Reader.read(char[])

reset

public void reset()
           throws IOException
Overrides:
reset in class Reader
Throws:
IOException
See Also:
Reader.reset()

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class Reader
Throws:
IOException
See Also:
Reader.skip(long)


Copyright © 2012 Railo