void setData(byte[] data) throws IOException { InputBitStream inStream = new InputBitStream(data); inStream.readUnsignedBits(4); // 4 reserved bits playbackRate = (byte) inStream.readUnsignedBits(2); isPlayback16BitSample = inStream.readBooleanBit(); isPlaybackStereo = inStream.readBooleanBit(); streamFormat = (byte) inStream.readUnsignedBits(4); streamRate = (byte) inStream.readUnsignedBits(2); isStream16BitSample = inStream.readBooleanBit(); isStreamStereo = inStream.readBooleanBit(); streamSampleCount = inStream.readUI16(); if ((streamFormat == FORMAT_MP3) && (data.length > 4)) { latencySeek = inStream.readSI16(); } }
Jump(InputBitStream stream) throws IOException { code = ActionConstants.JUMP; branchOffset = stream.readSI16(); }