|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--com.sas.iom.InputStream
Provides the capability to read input from an IOM InputStream.
| Constructor Summary | |
InputStream(com.sas.iom.SASCache.ICacheReader iCacheReader,
com.sas.iom.SASCache.ICacheService iCacheService)
|
|
| Method Summary | |
int |
available()
|
void |
close()
|
byte[] |
getData()
Get the data of this InputStream. |
byte[] |
getData(boolean closeStream)
Get the data of this InputStream. |
String |
getDataAsString()
Get the data of this InputStream. |
String |
getDataAsString(String encoding,
boolean closeStream)
Get the data of this InputStream. |
InputStreamHeaderInterface |
getHeader()
Get the header interface for this InputStream. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
| Methods inherited from class java.io.InputStream |
mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputStream(com.sas.iom.SASCache.ICacheReader iCacheReader,
com.sas.iom.SASCache.ICacheService iCacheService)
| Method Detail |
public InputStreamHeaderInterface getHeader()
InputStreamHeaderInterface
public byte[] getData()
throws IOException
This convenience method returns the entire contents of the InputStream as a byte array.
The InputStream will be automatically closed when all the data has been read.
public byte[] getData(boolean closeStream)
throws IOException
This convenience method returns the entire contents of the InputStream as a byte array.
closeStream - set to true to cause the stream to be closed; otherwise false.
public String getDataAsString()
throws IOException
This convenience method returns the entire contents of the InputStream as a String.
The default charset is used.
The InputStream will be automatically closed when all the data has been read.
public String getDataAsString(String encoding,
boolean closeStream)
throws IOException
This convenience method returns the entire contents of the InputStream as a String.
encoding - Name of a supported charset.closeStream - set to true to cause the stream to be closed; otherwise false.
public long skip(long n)
throws IOException
skip in class InputStream
public int read()
throws IOException
read in class InputStream
public int read(byte[] b)
throws IOException
read in class InputStream
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStream
public int available()
throws IOException
available in class InputStream
public void close()
throws IOException
close in class InputStream
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||