| Modifier and Type | Class and Description |
|---|---|
| public static enum | Encoder.Mode
... See encode.h, typedef enum BrotliEncoderMode Important Note The ordinal value of the modes should be the same as the constant values in encode.h |
| public static class | Encoder.Parameters
Brotli encoder settings. |
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer | |
| pack-priv boolean | |
| private final WritableByteChannel | |
| private final List | |
| private final EncoderJNI. | |
| pack-priv final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| pack-priv | Encoder(WritableByteChannel
underlying destination destination, Encoder.encoding parameters params,read buffer size inputBufferSize)Creates a Encoder wrapper. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv void | |
| public static byte[] | |
| public static byte[] | |
| public static byte[] | |
| public static byte[] | |
| public boolean | |
| private void | |
| public void | |
| public static PreparedDictionary | Returns: PreparedDictionary instanceraw / serialized dictionary data; MUST be direct dictionary, int dictionary data type sharedDictionaryType)Prepares raw or serialized dictionary for being used by encoder. |
| pack-priv boolean | Returns: true if all encoder output is consumedrepeat pushing until all output is consumed force)
|
| buffer | back to summary |
|---|---|
| private ByteBuffer buffer | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed | |
| destination | back to summary |
|---|---|
| private final WritableByteChannel destination | |
| dictionaries | back to summary |
|---|---|
| private final List<PreparedDictionary> dictionaries | |
| encoder | back to summary |
|---|---|
| private final EncoderJNI. | |
| inputBuffer | back to summary |
|---|---|
| pack-priv final ByteBuffer inputBuffer | |
| Encoder | back to summary |
|---|---|
| pack-priv Encoder(WritableByteChannel destination, Encoder. Creates a Encoder wrapper.
| |
| attachDictionary | back to summary |
|---|---|
public void attachDictionary(PreparedDictionary dictionary) throws IOException
| |
| close | back to summary |
|---|---|
pack-priv void close() throws IOException
| |
| compress | back to summary |
|---|---|
public static byte[] compress(byte[] data, int offset, int length, Encoder.
| |
| compress | back to summary |
|---|---|
public static byte[] compress(byte[] data) throws IOException
| |
| compress | back to summary |
|---|---|
public static byte[] compress(byte[] data, Encoder.
| |
| compress | back to summary |
|---|---|
public static byte[] compress(byte[] data, int offset, int length) throws IOException
| |
| encode | back to summary |
|---|---|
| public boolean encode(EncoderJNI. | |
| fail | back to summary |
|---|---|
private void fail(String message) throws IOException
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException | |
| prepareDictionary | back to summary |
|---|---|
| public static PreparedDictionary prepareDictionary(ByteBuffer dictionary, int sharedDictionaryType) Prepares raw or serialized dictionary for being used by encoder.
| |
| pushOutput | back to summary |
|---|---|
pack-priv boolean pushOutput(boolean force) throws IOException
| |
Important Note
The ordinal value of the modes should be the same as the constant values in encode.h
| Modifier and Type | Field and Description |
|---|---|
| private static final Encoder. | |
| public static final Encoder. | FONT
Compression mode used in WOFF 2.0. |
| public static final Encoder. | GENERIC
Default compression mode. |
| public static final Encoder. | TEXT
Compression mode for UTF-8 formatted text input. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Encoder. | |
| public static Encoder. | |
| public static Encoder. |
| ALL_VALUES | back to summary |
|---|---|
| private static final Encoder. | |
| FONT | back to summary |
|---|---|
| public static final Encoder. Compression mode used in WOFF 2.0. | |
| GENERIC | back to summary |
|---|---|
| public static final Encoder. Default compression mode. In this mode compressor does not know anything in advance about the properties of the input. | |
| TEXT | back to summary |
|---|---|
| public static final Encoder. Compression mode for UTF-8 formatted text input. | |
| Mode | back to summary |
|---|---|
| private Mode() | |
| of | back to summary |
|---|---|
| public static Encoder. | |
| valueOf | back to summary |
|---|---|
| public static Encoder. | |
| values | back to summary |
|---|---|
| public static Encoder. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Encoder. | |
| private int | |
| private Encoder. | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Encoder. | |
| public int | |
| public Encoder. | |
| public Encoder. | |
| public Encoder. |
| DEFAULT | back to summary |
|---|---|
| public static final Encoder. | |
| lgwin | back to summary |
|---|---|
| private int lgwin | |
| mode | back to summary |
|---|---|
| private Encoder. | |
| quality | back to summary |
|---|---|
| private int quality | |
| Parameters | back to summary |
|---|---|
| public Parameters() | |
| Parameters | back to summary |
|---|---|
| private Parameters(Encoder. | |
| lgwin | back to summary |
|---|---|
| public int lgwin() | |
| mode | back to summary |
|---|---|
| public Encoder. | |
| quality | back to summary |
|---|---|
| public int quality() | |
| setMode | back to summary |
|---|---|
public Encoder.
| |
| setQuality | back to summary |
|---|---|
public Encoder.
| |
| setWindow | back to summary |
|---|---|
public Encoder.
| |