|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
brooklyn.util.ReaderInputStream
public class ReaderInputStream extends java.io.InputStream
Constructor Summary | |
ReaderInputStream(java.io.Reader reader)
Construct a |
|
ReaderInputStream(java.io.Reader reader, java.lang.String encoding)
Construct a |
Method Summary | |
---|---|
int
|
available()
@return the current number of bytes ready for reading |
void
|
close()
Closes the Stringreader. |
void
|
mark(int limit)
Marks the read limit of the StringReader. |
boolean
|
markSupported()
@return false - mark is not supported |
int
|
read()
Reads from the |
int
|
read(byte[] b, int off, int len)
Reads from the |
void
|
reset()
Resets the StringReader. |
Methods inherited from class java.io.InputStream | |
---|---|
java.io.InputStream#close(), java.io.InputStream#mark(int), java.io.InputStream#reset(), java.io.InputStream#read([B, int, int), java.io.InputStream#read([B), java.io.InputStream#read(), java.io.InputStream#skip(long), java.io.InputStream#available(), java.io.InputStream#markSupported(), java.io.InputStream#wait(), java.io.InputStream#wait(long), java.io.InputStream#wait(long, int), java.io.InputStream#equals(java.lang.Object), java.io.InputStream#toString(), java.io.InputStream#hashCode(), java.io.InputStream#getClass(), java.io.InputStream#notify(), java.io.InputStream#notifyAll() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public ReaderInputStream(java.io.Reader reader)
ReaderInputStream
for the specified Reader
.
reader
- Reader
. Must not be null
.
public ReaderInputStream(java.io.Reader reader, java.lang.String encoding)
ReaderInputStream
for the specified Reader
,
with the specified encoding.
reader
- non-null Reader
.encoding
- non-null String
encoding.
Method Detail |
---|
public int available()
public void close()
public void mark(int limit)
limit
- the maximum limit of bytes that can be read before the
mark position becomes invalid
public boolean markSupported()
public int read()
Reader
, returning the same value.
Reader
fails to be readReader
.
public int read(byte[] b, int off, int len)
Reader
into a byte array
b
- the byte array to read intooff
- the offset in the byte arraylen
- the length in the byte array to fill
public void reset()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.