Class BitWriter
- java.lang.Object
- 
- org.apache.tika.parser.microsoft.onenote.fsshttpb.util.BitWriter
 
- 
 public class BitWriter extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description BitWriter(int bufferSize)Initializes a new instance of the BitWriter class with specified buffer size in byte.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendGUID(UUID value)Append a specified GUID value into the buffer.voidappendInit32(int value, int length)Append a specified Init32 type value into the buffer with the specified bit length.voidappendUInit32(int value, int length)Append a specified Unit32 type value into the buffer with the specified bit length.voidappendUInt64(long value, int length)Append a specified Unit64 type value into the buffer with the specified bit length.List<Byte>getByteList()byte[]getBytes()Gets a copy byte array which contains the current written byte.
 
- 
- 
- 
Method Detail- 
getBytespublic byte[] getBytes() throws IOExceptionGets a copy byte array which contains the current written byte.- Throws:
- IOException
 
 - 
getByteListpublic List<Byte> getByteList() throws IOException - Throws:
- IOException
 
 - 
appendUInt64public void appendUInt64(long value, int length)Append a specified Unit64 type value into the buffer with the specified bit length.- Parameters:
- value- Specify the value which needs to be appended.
- length- Specify the bit length which the value will occupy in the buffer.
 
 - 
appendUInit32public void appendUInit32(int value, int length)Append a specified Unit32 type value into the buffer with the specified bit length.- Parameters:
- value- Specify the value which needs to be appended.
- length- Specify the bit length which the value will occupy in the buffer.
 
 - 
appendInit32public void appendInit32(int value, int length)Append a specified Init32 type value into the buffer with the specified bit length.- Parameters:
- value- Specify the value which needs to be appended.
- length- Specify the bit length which the value will occupy in the buffer.
 
 - 
appendGUIDpublic void appendGUID(UUID value) Append a specified GUID value into the buffer.- Parameters:
- value- Specify the GUID value.
 
 
- 
 
-