blob: dfe6d19dd86fab694fd11ce80be31c946e95719d [file] [log] [blame] [raw]
package net.querz.nbt;
import java.io.Closeable;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
public class NBTInputStream implements Closeable {
protected final DataInputStream dis;
public NBTInputStream(InputStream is) {
dis = new DataInputStream(is);
}
public Tag readTag() throws IOException {
return Tag.deserializeTag(this);
}
@Override
public void close() throws IOException {
dis.close();
}
public DataInputStream getDataInputStream() {
return dis;
}
}