public class DataInputStreamExtended extends Object implements DataInputExtended
| Constructor and Description |
|---|
DataInputStreamExtended(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
DataInputStream |
getDataInputStream()
Underlying
DataInputStream to read in primitives. |
boolean |
readBoolean() |
boolean[] |
readBooleans() |
byte |
readByte() |
byte[] |
readBytes() |
char |
readChar() |
char[] |
readChars() |
double |
readDouble() |
double[] |
readDoubles() |
<T> T |
readEncodable(Class<T> encodableType) |
<T> T[] |
readEncodables(Class<T> elementType) |
float |
readFloat() |
float[] |
readFloats() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
int[] |
readInts() |
String |
readLine() |
long |
readLong() |
long[] |
readLongs() |
<T> T |
readSerializable(Class<T> serializableType) |
<T> T[] |
readSerializables(Class<T> elementType) |
short |
readShort() |
short[] |
readShorts() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
String[] |
readUTFs() |
int |
skipBytes(int n) |
public DataInputStreamExtended(InputStream inputStream)
public DataInputStream getDataInputStream()
DataInputExtendedDataInputStream to read in primitives.getDataInputStream in interface DataInputExtendedpublic boolean readBoolean() throws IOException
readBoolean in interface DataInputIOExceptionpublic boolean[] readBooleans() throws IOException
readBooleans in interface DataInputExtendedIOExceptionpublic char readChar() throws IOException
readChar in interface DataInputIOExceptionpublic char[] readChars() throws IOException
readChars in interface DataInputExtendedIOExceptionpublic byte readByte() throws IOException
readByte in interface DataInputIOExceptionpublic byte[] readBytes() throws IOException
readBytes in interface DataInputExtendedIOExceptionpublic short readShort() throws IOException
readShort in interface DataInputIOExceptionpublic short[] readShorts() throws IOException
readShorts in interface DataInputExtendedIOExceptionpublic int readInt() throws IOException
readInt in interface DataInputIOExceptionpublic int readUnsignedByte() throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort() throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic int[] readInts() throws IOException
readInts in interface DataInputExtendedIOExceptionpublic long readLong() throws IOException
readLong in interface DataInputIOExceptionpublic long[] readLongs() throws IOException
readLongs in interface DataInputExtendedIOExceptionpublic float readFloat() throws IOException
readFloat in interface DataInputIOExceptionpublic float[] readFloats() throws IOException
readFloats in interface DataInputExtendedIOExceptionpublic double readDouble() throws IOException
readDouble in interface DataInputIOExceptionpublic double[] readDoubles() throws IOException
readDoubles in interface DataInputExtendedIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic String[] readUTFs() throws IOException
readUTFs in interface DataInputExtendedIOExceptionpublic <T> T readEncodable(Class<T> encodableType) throws IOException
readEncodable in interface DataInputExtendedIOExceptionpublic <T> T[] readEncodables(Class<T> elementType) throws IOException
readEncodables in interface DataInputExtendedIOExceptionpublic <T> T readSerializable(Class<T> serializableType) throws IOException
readSerializable in interface DataInputExtendedIOExceptionpublic <T> T[] readSerializables(Class<T> elementType) throws IOException
readSerializables in interface DataInputExtendedIOExceptionpublic void readFully(byte[] b) throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b, int off, int len) throws IOException
readFully in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic int skipBytes(int n) throws IOException
skipBytes in interface DataInputIOExceptionCopyright © 2010–2014 The Apache Software Foundation. All rights reserved.