railo.commons.io.reader
Class ByteArrayInputStreamReader
java.lang.Object
java.io.Reader
java.io.InputStreamReader
railo.commons.io.reader.ByteArrayInputStreamReader
- All Implemented Interfaces:
- Closeable, Readable
public final class ByteArrayInputStreamReader
- extends InputStreamReader
InputStream Reader for byte arrays, support mark
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
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStreamReader
- Throws:
IOException
getEncoding
public String getEncoding()
- Overrides:
getEncoding
in class InputStreamReader
read
public int read()
throws IOException
- Overrides:
read
in class InputStreamReader
- Throws:
IOException
read
public int read(char[] cbuf,
int offset,
int length)
throws IOException
- Overrides:
read
in class InputStreamReader
- Throws:
IOException
ready
public boolean ready()
throws IOException
- Overrides:
ready
in class InputStreamReader
- Throws:
IOException
mark
public void mark(int readAheadLimit)
throws IOException
- Overrides:
mark
in class Reader
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class Reader
read
public int read(CharBuffer target)
throws IOException
- Specified by:
read
in interface Readable
- Overrides:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf)
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class Reader
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class Reader
- Throws:
IOException
Copyright © 2012 Railo