|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iom.InputStream
public class 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. |
java.lang.String |
getDataAsString()
Get the data of this InputStream. |
java.lang.String |
getDataAsString(java.lang.String encoding,
boolean closeStream)
Get the data of this InputStream. |
com.sas.io.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)
|
Constructor Detail |
---|
public InputStream(com.sas.iom.SASCache.ICacheReader iCacheReader, com.sas.iom.SASCache.ICacheService iCacheService)
Method Detail |
---|
public com.sas.io.InputStreamHeaderInterface getHeader()
InputStreamHeaderInterface
public byte[] getData() throws java.io.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.
java.io.IOException
public byte[] getData(boolean closeStream) throws java.io.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.
java.io.IOException
public java.lang.String getDataAsString() throws java.io.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.
java.io.IOException
public java.lang.String getDataAsString(java.lang.String encoding, boolean closeStream) throws java.io.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.
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |