public class CountTreeBitsCollection extends BitsCollection<TreeMap<Bits,AtomicInteger>>
| Modifier and Type | Class and Description |
|---|---|
static class |
CountTreeBitsCollection.BranchCounts |
static class |
CountTreeBitsCollection.SerializationChecks |
BitsCollection.CodeType| Modifier and Type | Field and Description |
|---|---|
static boolean |
SERIALIZATION_CHECKS |
bitDepthmap| Constructor and Description |
|---|
CountTreeBitsCollection() |
CountTreeBitsCollection(BitInputStream bitStream) |
CountTreeBitsCollection(BitInputStream bitStream,
int bitDepth) |
CountTreeBitsCollection(byte[] data) |
CountTreeBitsCollection(byte[] data,
int bitDepth) |
CountTreeBitsCollection(int bitDepth) |
| Modifier and Type | Method and Description |
|---|---|
TreeMap<Bits,Long> |
computeSums() |
static <T> T |
isNull(T value,
T defaultValue) |
void |
read(BitInputStream in) |
void |
read(BitInputStream in,
int size) |
protected CountTreeBitsCollection.BranchCounts |
readBranchCounts(BitInputStream in,
Bits code,
long size) |
protected long |
readTerminalCount(BitInputStream in,
long size) |
protected long |
readZeroBranchSize(BitInputStream in,
long max,
Bits code) |
CountTreeBitsCollection |
setUseBinomials(boolean useBinomials) |
long |
sum(Collection<Long> values) |
byte[] |
toBytes() |
boolean |
useBinomials() |
void |
write(BitOutputStream out) |
void |
write(BitOutputStream out,
int size) |
protected void |
writeBranchCounts(CountTreeBitsCollection.BranchCounts branch,
BitOutputStream out) |
protected void |
writeTerminalCount(BitOutputStream out,
long value,
long max) |
protected void |
writeZeroBranchSize(BitOutputStream out,
long value,
long max,
Bits bits) |
getTypepublic CountTreeBitsCollection()
public CountTreeBitsCollection(BitInputStream bitStream) throws IOException
IOExceptionpublic CountTreeBitsCollection(BitInputStream bitStream, int bitDepth) throws IOException
IOExceptionpublic CountTreeBitsCollection(byte[] data)
throws IOException
IOExceptionpublic CountTreeBitsCollection(byte[] data,
int bitDepth)
throws IOException
IOExceptionpublic CountTreeBitsCollection(int bitDepth)
public static <T> T isNull(T value,
T defaultValue)
public void read(BitInputStream in) throws IOException
read in class BitsCollection<TreeMap<Bits,AtomicInteger>>IOExceptionpublic void read(BitInputStream in, int size) throws IOException
IOExceptionprotected CountTreeBitsCollection.BranchCounts readBranchCounts(BitInputStream in, Bits code, long size) throws IOException
IOExceptionprotected long readTerminalCount(BitInputStream in, long size) throws IOException
IOExceptionprotected long readZeroBranchSize(BitInputStream in, long max, Bits code) throws IOException
IOExceptionpublic CountTreeBitsCollection setUseBinomials(boolean useBinomials)
public long sum(Collection<Long> values)
public byte[] toBytes()
throws IOException
IOExceptionpublic boolean useBinomials()
public void write(BitOutputStream out) throws IOException
write in class BitsCollection<TreeMap<Bits,AtomicInteger>>IOExceptionpublic void write(BitOutputStream out, int size) throws IOException
IOExceptionprotected void writeBranchCounts(CountTreeBitsCollection.BranchCounts branch, BitOutputStream out) throws IOException
IOExceptionprotected void writeTerminalCount(BitOutputStream out, long value, long max) throws IOException
IOExceptionprotected void writeZeroBranchSize(BitOutputStream out, long value, long max, Bits bits) throws IOException
IOExceptionCopyright © 2019 SimiaCryptus Software. All rights reserved.