mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Java 1.8.
This commit is contained in:
parent
48d31b7f5c
commit
a9a0762383
26 changed files with 747 additions and 819 deletions
|
@ -7,10 +7,6 @@ import java.io.IOException;
|
|||
* Most IO interfaces only allow for writing at the byte level or higher.
|
||||
*/
|
||||
public interface BitWriter {
|
||||
/**
|
||||
* Returns the number of bits that have been written to this bitwriter.
|
||||
*/
|
||||
public long nrBits();
|
||||
|
||||
/**
|
||||
* Write a 1 bit.
|
||||
|
@ -22,14 +18,12 @@ public interface BitWriter {
|
|||
/**
|
||||
* Pad the rest of the block with zeros and flush.
|
||||
*
|
||||
* @param factor
|
||||
* @param width
|
||||
* The size in bits of the block to pad. This will typically be
|
||||
* 8, 16, 32, 64, 128, 256, etc.
|
||||
* @return true if the block was zero padded, or false if the the padding
|
||||
* contains any one bits.
|
||||
* @throws IOException
|
||||
*/
|
||||
public void pad(int factor) throws IOException;
|
||||
public void pad(int width) throws IOException;
|
||||
|
||||
/**
|
||||
* Write some bits. Up to 32 bits can be written at a time.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue