2012-09-20 03:19:12 +02:00
|
|
|
/**
|
2017-07-05 18:05:52 +02:00
|
|
|
* Copyright (C) 2017 Ryszard Wiśniewski <brut.alll@gmail.com>
|
|
|
|
* Copyright (C) 2017 Connor Tumbleson <connor.tumbleson@gmail.com>
|
2012-09-20 03:19:12 +02:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
package brut.util;
|
|
|
|
|
|
|
|
import java.io.DataInput;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
|
|
|
*/
|
|
|
|
abstract public class DataInputDelegate implements DataInput {
|
|
|
|
protected final DataInput mDelegate;
|
|
|
|
|
|
|
|
public DataInputDelegate(DataInput delegate) {
|
|
|
|
this.mDelegate = delegate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int skipBytes(int n) throws IOException {
|
|
|
|
return mDelegate.skipBytes(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int readUnsignedShort() throws IOException {
|
|
|
|
return mDelegate.readUnsignedShort();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int readUnsignedByte() throws IOException {
|
|
|
|
return mDelegate.readUnsignedByte();
|
|
|
|
}
|
|
|
|
|
|
|
|
public String readUTF() throws IOException {
|
|
|
|
return mDelegate.readUTF();
|
|
|
|
}
|
|
|
|
|
|
|
|
public short readShort() throws IOException {
|
|
|
|
return mDelegate.readShort();
|
|
|
|
}
|
|
|
|
|
|
|
|
public long readLong() throws IOException {
|
|
|
|
return mDelegate.readLong();
|
|
|
|
}
|
|
|
|
|
|
|
|
public String readLine() throws IOException {
|
|
|
|
return mDelegate.readLine();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int readInt() throws IOException {
|
|
|
|
return mDelegate.readInt();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void readFully(byte[] b, int off, int len) throws IOException {
|
|
|
|
mDelegate.readFully(b, off, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void readFully(byte[] b) throws IOException {
|
|
|
|
mDelegate.readFully(b);
|
|
|
|
}
|
|
|
|
|
|
|
|
public float readFloat() throws IOException {
|
|
|
|
return mDelegate.readFloat();
|
|
|
|
}
|
|
|
|
|
|
|
|
public double readDouble() throws IOException {
|
|
|
|
return mDelegate.readDouble();
|
|
|
|
}
|
|
|
|
|
|
|
|
public char readChar() throws IOException {
|
|
|
|
return mDelegate.readChar();
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte readByte() throws IOException {
|
|
|
|
return mDelegate.readByte();
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean readBoolean() throws IOException {
|
|
|
|
return mDelegate.readBoolean();
|
|
|
|
}
|
|
|
|
}
|