Methods Summary |
---|
public BlockType | getBlockType()
return blockType;
|
public byte[] | getBytes()
return bytes;
|
public byte[] | getBytesWithoutIsLastBlockFlag()
bytes[0] = (byte) (bytes[0] & 0x7F);
return bytes;
|
public int | getDataLength()
return dataLength;
|
public boolean | isLastBlock()
return isLastBlock;
|
public static org.jaudiotagger.audio.flac.metadatablock.MetadataBlockHeader | readHeader(java.io.RandomAccessFile raf)Create header by reading from file
ByteBuffer rawdata = ByteBuffer.allocate(HEADER_LENGTH);
int bytesRead = raf.getChannel().read(rawdata);
if (bytesRead < HEADER_LENGTH)
{
throw new IOException("Unable to read required number of databytes read:" + bytesRead + ":required:" + HEADER_LENGTH);
}
rawdata.rewind();
return new MetadataBlockHeader(rawdata);
|
public java.lang.String | toString()
return "BlockType:"+blockType + " DataLength:"+dataLength + " isLastBlock:"+isLastBlock;
|
private int | u(int i)
return i & 0xFF;
|