| 
 | Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.InputStream
brooklyn.util.stream.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 ReaderInputStream for the specified java.io.Reader, with the specified encoding. | |
| 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 java.io.Reader, returning the same value. | 
| int | read(byte[] b, int off, int len)Reads from the java.io.Reader into a byte array | 
| 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)
reader -    java.io.Reader; must not be null.
public ReaderInputStream(java.io.Reader reader, java.lang.String encoding)
reader -      non-null java.io.Reader.encoding -    non-null java.lang.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()
public int read(byte[] b, int off, int len)
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.