|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.util.MyDataInputStream
public class MyDataInputStream
Constructor Summary | |
---|---|
MyDataInputStream()
|
Method Summary | |
---|---|
static java.lang.String |
getBigUTFString(java.io.DataInputStream in)
Reads from the stream in a representation of a Unicode character string encoded in Java modified UTF-8 format; this string of characters is then returned as a String . |
static java.lang.String |
getSmallUTFString(java.io.DataInputStream in)
Reads from the stream in a representation of a Unicode character string encoded in Java modified UTF-8 format; this string of characters is then returned as a String . |
static java.lang.String |
getUTFString(java.io.DataInputStream in,
int charlength,
int byteLength)
Gets The String whose UTF-encoded bytes are the next bytes read from the inputStream argument |
static byte[] |
readExactNumberOfBytes(java.io.DataInputStream in,
int byteCount)
Gets A byte array the size of byteCount holding the next bytes read from the inputStream argument |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MyDataInputStream()
Method Detail |
---|
public static java.lang.String getBigUTFString(java.io.DataInputStream in) throws java.io.IOException
in
a representation of a Unicode character string encoded in Java modified UTF-8 format; this string of characters is then returned as a String
. The details of the modified UTF-8 representation are exactly the same as for the readUTF
method of DataInput
.
in
- a data input stream.
java.io.IOException
public static java.lang.String getSmallUTFString(java.io.DataInputStream in) throws java.io.IOException, java.io.UTFDataFormatException
in
a representation of a Unicode character string encoded in Java modified UTF-8 format; this string of characters is then returned as a String
. The details of the modified UTF-8 representation are exactly the same as for the readUTF
method of DataInput
.
in
- a data input stream.
java.io.IOException
java.io.UTFDataFormatException
public static java.lang.String getUTFString(java.io.DataInputStream in, int charlength, int byteLength) throws java.io.IOException, java.io.UTFDataFormatException
in
- The InputStream to readcharlength
- The character length of the StringbyteLength
- The number of bytes that are to be read from the inputstream
java.io.IOException
java.io.UTFDataFormatException
public static byte[] readExactNumberOfBytes(java.io.DataInputStream in, int byteCount) throws java.io.IOException
in
- The InputStream to readbyteCount
- the number of bytes to read
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |