|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.utils.io.ByteCachedStream
A CachedStream that returnes streams that are cached in memory in a byte array.
| Constructor Summary | |
ByteCachedStream()
|
|
| Method Summary | |
CachedInputStream |
getInputStream(CachedOutputStream cout)
Get a rewindable input stream from the given CachedOutputStream. |
CachedInputStream |
getInputStream(java.io.InputStream is)
Get a rewindable inputstream from the given input stream, if the stream is a Rewindable input stream, it is just returned. |
CachedOutputStream |
getOutputStream()
Get a CachedOutputStream. |
java.lang.String |
getProperty(java.lang.String name)
Chech if property is set, allways returns null. |
void |
rewind(java.io.InputStream is)
Rewind this stream if it is rewindable, otherwise throw an IOException. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Empty implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteCachedStream()
| Method Detail |
public CachedOutputStream getOutputStream()
throws java.io.IOException
The typical usecase for this is to later use it to get a CachedInputStream from it.
getOutputStream in interface CachedStreamjava.io.IOException
public CachedInputStream getInputStream(CachedOutputStream cout)
throws java.io.IOException
getInputStream in interface CachedStreamjava.io.IOException - if the CachedOutputStream is not of the correct type (not from the same cache) or if an underlying IOException happens.
public CachedInputStream getInputStream(java.io.InputStream is)
throws java.io.IOException
getInputStream in interface CachedStreamjava.io.IOException
public void rewind(java.io.InputStream is)
throws java.io.IOException
rewind in interface CachedStreamjava.io.IOException
public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface CachedStreampublic java.lang.String getProperty(java.lang.String name)
getProperty in interface CachedStream
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||