class HeaderBlock {

    
    private ByteBuffer buffer;
    
    
    public HeaderBlock(ByteBuffer buffer) {
        // FIXME: Read the fields we're interested in directly from stream
        this.buffer = buffer;
        buffer.order(ByteOrder.LITTLE_ENDIAN);
    }
    
    
    public long getFileType() {
        return buffer.getLong(0);
    }
    
    
    public int getBATCount() {
        return buffer.getInt(0x2C);
    }
    
    
    public int getEntriesStart() {
        return buffer.getInt(0x30);
    }
    
    
    public int getSmallBATStart() {
        return buffer.getInt(0x3C);
    }
    
    
    public int getSmallBATCount() {
        return buffer.getInt(0x40);
    }
    
    
    public int getExtendedBATStart() {
        return buffer.getInt(0x44);
    }
    
    
    public int getExtendedBATCount() {
        return buffer.getInt(0x48);
    }
    
    
    public int getBATBlockNumber(int block) {
        assert block < 110;
        return buffer.getInt(0x4C + block * 4);
    }

    
    public String toString() {<FILL_FUNCTION_BODY>}

}

        StringBuilder sb = new StringBuilder("HeaderBlock{");
        sb.append("fileType=" + getFileType());
        sb.append(" propertiesStart=" + getEntriesStart());
        sb.append(" batCount=" + getBATCount());
        sb.append(" extendedBATStart=" + getExtendedBATStart());
        sb.append(" extendedBATCount=" + getExtendedBATCount());
        sb.append(" smallBATStart=" + getSmallBATStart());
        sb.append(" smallBATCount=" + getSmallBATCount());
        sb.append("}");
        return sb.toString();
    
<no_super_class>