private long getDataLength(long dataPos) { byte[] dataLengthBytes = new byte[4]; forkStream.readFrom(dataPos, dataLengthBytes); return Util.unsign(Util.readIntBE(dataLengthBytes)); }
public ResourceHeader getHeader() { byte[] headerData = new byte[ResourceHeader.length()]; forkStream.readFullyFrom(0, headerData); return new ResourceHeader(headerData, 0); }