public class DataInputExtender extends Object implements ExtendedDataInput, Closeable
ExtendedDataInput.Delegating, ExtendedDataInput.Stream| Constructor and Description |
|---|
DataInputExtender(DataInput input) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readByteArray() |
char |
readChar() |
double |
readDouble() |
<T extends Enum<?>> |
readEnum(Class<T> type) |
Throwable |
readException() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
Object |
readObject() |
Object |
readObject(ClassLoader classLoader) |
Object |
readObject(ExtendedIOUtil.ClassResolver classResolver) |
short |
readShort() |
String |
readString() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
int |
skipBytes(int n) |
public DataInputExtender(DataInput input)
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic byte[] readByteArray()
throws IOException
readByteArray in interface ExtendedDataInputIOExceptionpublic Object readObject() throws IOException
readObject in interface ExtendedDataInputIOExceptionpublic Object readObject(ClassLoader classLoader) throws IOException
readObject in interface ExtendedDataInputIOExceptionpublic Object readObject(ExtendedIOUtil.ClassResolver classResolver) throws IOException
readObject in interface ExtendedDataInputIOExceptionpublic String readString() throws IOException
readString in interface ExtendedDataInputIOExceptionpublic <T extends Enum<?>> T readEnum(Class<T> type) throws IOException
readEnum in interface ExtendedDataInputIOExceptionpublic Throwable readException() throws IOException
readException in interface ExtendedDataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html