blob: 4488a526a7cde1b44415e7cb191c325da7d215fd [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 Exception {
return Tag.deserializeTag(this);
}
@Override
public void close() throws IOException {
dis.close();
}
public DataInputStream getDataInputStream() {
return dis;
}
}