public class DataInputExtender extends java.lang.Object implements ExtendedDataInput, java.io.Closeable
ExtendedDataInput.Delegating, ExtendedDataInput.Stream
Constructor and Description |
---|
DataInputExtender(java.io.DataInput input) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readByteArray() |
char |
readChar() |
double |
readDouble() |
<T extends java.lang.Enum<?>> |
readEnum(java.lang.Class<T> type) |
java.lang.Throwable |
readException() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
java.lang.String |
readLine() |
long |
readLong() |
java.lang.Object |
readObject() |
java.lang.Object |
readObject(java.lang.ClassLoader classLoader) |
java.lang.Object |
readObject(ExtendedIOUtil.ClassResolver classResolver) |
short |
readShort() |
java.lang.String |
readString() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
int |
readVarInt() |
long |
readVarLong() |
int |
skipBytes(int n) |
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public void readFully(byte[] b) throws java.io.IOException
readFully
in interface java.io.DataInput
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
java.io.IOException
public java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
java.io.IOException
public int readVarInt() throws java.io.IOException
readVarInt
in interface ExtendedDataInput
java.io.IOException
public long readVarLong() throws java.io.IOException
readVarLong
in interface ExtendedDataInput
java.io.IOException
public byte[] readByteArray() throws java.io.IOException
readByteArray
in interface ExtendedDataInput
java.io.IOException
public java.lang.Object readObject() throws java.io.IOException
readObject
in interface ExtendedDataInput
java.io.IOException
public java.lang.Object readObject(java.lang.ClassLoader classLoader) throws java.io.IOException
readObject
in interface ExtendedDataInput
java.io.IOException
public java.lang.Object readObject(ExtendedIOUtil.ClassResolver classResolver) throws java.io.IOException
readObject
in interface ExtendedDataInput
java.io.IOException
public java.lang.String readString() throws java.io.IOException
readString
in interface ExtendedDataInput
java.io.IOException
public <T extends java.lang.Enum<?>> T readEnum(java.lang.Class<T> type) throws java.io.IOException
readEnum
in interface ExtendedDataInput
java.io.IOException
public java.lang.Throwable readException() throws java.io.IOException
readException
in interface ExtendedDataInput
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright (c) 2004-2019 Eike Stepper (Loehne, 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