|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataSource
A data sink is an I/O resource capable of providing data.
Method Summary | |
---|---|
byte |
readByte()
read a byte |
byte[] |
readBytesByDelimiter(java.lang.String delimiter,
int maxLength)
read a byte array by using a delimiter For performance reasons, the ByteBuffer readByteBuffer method is generally preferable to get bytes |
byte[] |
readBytesByLength(int length)
read bytes by using a length defintion |
double |
readDouble()
read a double |
int |
readInt()
read an int |
long |
readLong()
read a long |
short |
readShort()
read a short value |
java.lang.String |
readStringByDelimiter(java.lang.String delimiter)
read a string by using a delimiter and the connection default encoding |
java.lang.String |
readStringByDelimiter(java.lang.String delimiter,
int maxLength)
read a string by using a delimiter and the connection default encoding |
java.lang.String |
readStringByDelimiter(java.lang.String delimiter,
java.lang.String encoding,
int maxLength)
read a string by using a delimiter |
java.lang.String |
readStringByLength(int length)
read a string by using a length definition and the connection default encoding |
java.lang.String |
readStringByLength(int length,
java.lang.String encoding)
read a string by using a length definition |
Method Detail |
---|
byte readByte() throws java.io.IOException
java.io.IOException
- If some other I/O error occursshort readShort() throws java.io.IOException
java.io.IOException
- If some other I/O error occursint readInt() throws java.io.IOException
java.io.IOException
- If some other I/O error occurslong readLong() throws java.io.IOException
java.io.IOException
- If some other I/O error occursdouble readDouble() throws java.io.IOException
java.io.IOException
- If some other I/O error occursbyte[] readBytesByLength(int length) throws java.io.IOException
length
- the amount of bytes to read
java.io.IOException
- If some other I/O error occursjava.lang.String readStringByLength(int length) throws java.io.IOException, java.io.UnsupportedEncodingException
length
- the amount of bytes to read
java.io.IOException
- If some other I/O error occurs
java.io.UnsupportedEncodingException
- if the given encoding is not supportedjava.lang.String readStringByLength(int length, java.lang.String encoding) throws java.io.IOException, java.io.UnsupportedEncodingException
length
- the amount of bytes to readencoding
- the encodin to use
java.io.IOException
- If some other I/O error occurs
java.io.UnsupportedEncodingException
- if the given encoding is not supportedjava.lang.String readStringByDelimiter(java.lang.String delimiter) throws java.io.IOException, java.io.UnsupportedEncodingException
delimiter
- the delimiter
java.io.IOException
- If some other I/O error occurs
java.io.UnsupportedEncodingException
- if the default encoding is not supportedjava.lang.String readStringByDelimiter(java.lang.String delimiter, int maxLength) throws java.io.IOException, java.io.UnsupportedEncodingException, MaxReadSizeExceededException
delimiter
- the delimitermaxLength
- the max length of bytes that should be read. If the limit is exceeded a MaxReadSizeExceededException will been thrown
MaxReadSizeExceededException
- If the max read length has been exceeded and the delimiter hasn’t been found
java.io.IOException
- If some other I/O error occurs
java.io.UnsupportedEncodingException
- if the default encoding is not supportedjava.lang.String readStringByDelimiter(java.lang.String delimiter, java.lang.String encoding, int maxLength) throws java.io.IOException, java.io.UnsupportedEncodingException, MaxReadSizeExceededException
delimiter
- the delimiterencoding
- the encodin to usemaxLength
- the max length of bytes that should be read. If the limit is exceeded a MaxReadSizeExceededException will been thrown
MaxReadSizeExceededException
- If the max read length has been exceeded and the delimiter hasn’t been found
java.io.IOException
- If some other I/O error occurs
java.io.UnsupportedEncodingException
- if the given encoding is not supportedbyte[] readBytesByDelimiter(java.lang.String delimiter, int maxLength) throws java.io.IOException, MaxReadSizeExceededException
delimiter
- the delimitermaxLength
- the max length of bytes that should be read. If the limit is exceeded a MaxReadSizeExceededException will been thrown
MaxReadSizeExceededException
- If the max read length has been exceeded and the delimiter hasn’t been found
java.io.IOException
- If some other I/O error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |