public class Encoder
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Encoder.State |
| Constructor and Description |
|---|
Encoder(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(boolean value) |
void |
append(int value,
int bits_needed) |
static int |
bitsNeeded(int max_value) |
void |
copyToFeature(Feature feature) |
boolean |
equals(java.lang.Object obj) |
int |
getCapacity() |
int |
getCurrentLength() |
Feature |
getFeature() |
Feature |
getFeature(boolean flag) |
int |
hashCode() |
void |
reset() |
void |
restoreState() |
void |
restoreState(Encoder.State state) |
void |
storeState() |
void |
storeState(Encoder.State state) |
java.lang.String |
toString() |
public static int bitsNeeded(int max_value)
public void append(boolean value)
public void append(int value,
int bits_needed)
public Feature getFeature()
public void reset()
public Feature getFeature(boolean flag)
public void storeState()
public void storeState(Encoder.State state)
public void restoreState()
public void restoreState(Encoder.State state)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getCapacity()
public void copyToFeature(Feature feature)
public int getCurrentLength()