Package compression
compression #sleela 2.5 (lib/compression/compression.sleela)
Compression class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
loaded | int[] loaded | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
count | int count() | No description in source. |
init | void init() | No description in source. |
isLoaded | boolean isLoaded(int id) | No description in source. |
load | void load(int id) | No description in source. |
unload | void unload(int id) | No description in source. |
unloadAll | void unloadAll() | No description in source. |
isNative | boolean isNative(int id) | No description in source. |
nameOf | String nameOf(int id) | No description in source. |
stateWord | String stateWord(int id) | No description in source. |
report | void report(int id) | No description in source. |
main | void main() | No description in source. |
compression-pipeline #sleela 2.5 (lib/compression/compression-pipeline.sleela)
Verifier class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
resolveExtension | int resolveExtension(String ext) | No description in source. |
probeMagic | int probeMagic(String tag) | No description in source. |
resultText | String resultText(int code) | No description in source. |
Processor class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
compress | int compress(boolean loaded, boolean nativeAlg, boolean backendReady) | No description in source. |
decompress | int decompress(boolean loaded, boolean nativeAlg, boolean backendReady) | No description in source. |
Controller class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
loaded | int[] loaded | No description in source. |
backend | int[] backend | No description in source. |
verifier | Verifier verifier | wired by create(), called via the field (1.11) |
processor | Processor processor | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
count | int count() | No description in source. |
isNative | boolean isNative(int id) | No description in source. |
nameOf | String nameOf(int id) | No description in source. |
load | int load(int id) | No description in source. |
isLoaded | boolean isLoaded(int id) | No description in source. |
unloadAll | void unloadAll() | No description in source. |
registerBackend | int registerBackend(int id) | No description in source. |
hasBackend | boolean hasBackend(int id) | No description in source. |
loadedCount | int loadedCount() | No description in source. |
resolveExtension | int resolveExtension(String ext) | Clean facade methods: delegate to the wired collaborators. |
probeMagic | int probeMagic(String tag) | No description in source. |
resultText | String resultText(int code) | No description in source. |
compress | int compress(int id) | No description in source. |
decompress | int decompress(int id) | No description in source. |
main | void main() | No description in source. |
SLCompressionBrotli #sleela 2.5 (lib/compression/SLCompressionBrotli.sleela)
SLCompressionBrotli class
Brotli algorithm class — the SLeeLa-facing handle to algorithm id 12.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionBzip2 #sleela 2.5 (lib/compression/SLCompressionBzip2.sleela)
SLCompressionBzip2 class
bzip2 algorithm class — the SLeeLa-facing handle to algorithm id 7.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionController #sleela 2.5 (lib/compression/SLCompressionController.sleela)
SLCompressionController class extends SLPluginService
Defines the SLeeLa standard-library type SLCompressionController used within the compression library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
verifier | SLCompressionVerifier verifier | The verification collaborator, wired by create() and called via the field. (Lifecycle tables + ready flag are inherited from SLPluginService.) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | Build the controller with every algorithm registered but none loaded. Mirrors sleela_compression_manager_create. configure() (inherited) allocates the 15-entry lifecycle tables and records the native-id mask; then wire the Verifier. Native algorithms compress/decompress in-package: Store (0), RLE (1), Huffman (2), LZW (3) -> mask bits 0..3. |
resolveExtension | int resolveExtension(String extension) | Resolve an algorithm id from a file extension via the Controller's Verifier. |
compress | int compress(int id) | compress(id) / decompress(id): gated by the shared dispatchCode(): -2 invalid, -5 not loaded, -1 backend absent, 0 ok. |
decompress | int decompress(int id) | No description in source. |
serviceName | String serviceName() | ---- identity + result text ----------------------------------------- |
resultText | String resultText(int code) | Human-readable text for a result code (via the wired Verifier, which uses the shared SLServiceResult vocabulary). |
SLCompressionDeflate #sleela 2.5 (lib/compression/SLCompressionDeflate.sleela)
SLCompressionDeflate class
DEFLATE (RFC 1951) algorithm class — the SLeeLa-facing handle to algorithm id 4.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionGzip #sleela 2.5 (lib/compression/SLCompressionGzip.sleela)
SLCompressionGzip class
gzip (RFC 1952) algorithm class — the SLeeLa-facing handle to algorithm id 6.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionHuffman #sleela 2.5 (lib/compression/SLCompressionHuffman.sleela)
SLCompressionHuffman class
Canonical Huffman algorithm class — the SLeeLa-facing handle to algorithm id 2.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 0 == native. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionLoader #sleela 2.5 (lib/compression/SLCompressionLoader.sleela)
SLCompressionLoader class
Defines the SLeeLa standard-library type SLCompressionLoader used within the compression library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
loaded | int[] loaded | Per-algorithm loaded flag (1 loaded, 0 not), indexed by id. Backed by the first-class array type; call init() before use. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
algorithmCount | int algorithmCount() | The number of algorithms the native manager knows (SLEELA_COMPRESSION_COUNT). |
init | void init() | Allocate the loaded-flag table with every algorithm unloaded. |
load | void load(int id) | load(id): mark an algorithm loaded. Mirrors sleela_compression_manager_load. |
unload | void unload(int id) | unload(id): mark an algorithm unloaded. Mirrors sleela_compression_manager_unload. |
isLoaded | boolean isLoaded(int id) | No description in source. |
unloadAll | void unloadAll() | unloadAll(): release every loaded algorithm. Mirrors sleela_compression_manager_unload_all. |
nameOf | String nameOf(int id) | Human-readable algorithm name by id, matching the native registry. |
isNative | boolean isNative(int id) | Native algorithms implement compress/decompress in-package (no external backend): Store (0), RLE (1), Huffman (2), LZW (3). The rest are backend or container handlers until an approved library adapter is registered. |
SLCompressionLz4 #sleela 2.5 (lib/compression/SLCompressionLz4.sleela)
SLCompressionLz4 class
LZ4 algorithm class — the SLeeLa-facing handle to algorithm id 11.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionLzma #sleela 2.5 (lib/compression/SLCompressionLzma.sleela)
SLCompressionLzma class
LZMA algorithm class — the SLeeLa-facing handle to algorithm id 8.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionLzw #sleela 2.5 (lib/compression/SLCompressionLzw.sleela)
SLCompressionLzw class
Lempel-Ziv-Welch algorithm class — the SLeeLa-facing handle to algorithm id 3.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 0 == native. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionProcessor #sleela 2.5 (lib/compression/SLCompressionProcessor.sleela)
SLCompressionProcessor class
Defines the SLeeLa standard-library type SLCompressionProcessor used within the compression library family.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
canProcess | boolean canProcess(boolean loaded, boolean nativeAlg, boolean backendReady) | canProcess: can this algorithm compress/decompress right now, given the facts? True for a loaded native algorithm, or a loaded backend algorithm with a backend registered — what a GUI checks before enabling an action. |
compress | int compress(boolean loaded, boolean nativeAlg, boolean backendReady) | compress: dispatch a compress against the given facts. Returns a result code: -5 not loaded, 0 ok (native or backend ready), -1 backend absent. |
decompress | int decompress(boolean loaded, boolean nativeAlg, boolean backendReady) | decompress: same result-code contract as compress. |
SLCompressionRle #sleela 2.5 (lib/compression/SLCompressionRle.sleela)
SLCompressionRle class
Run-Length Encoding algorithm class — the SLeeLa-facing handle to algorithm id 1.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 0 == native. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionSnappy #sleela 2.5 (lib/compression/SLCompressionSnappy.sleela)
SLCompressionSnappy class
Snappy algorithm class — the SLeeLa-facing handle to algorithm id 13.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionStore #sleela 2.5 (lib/compression/SLCompressionStore.sleela)
SLCompressionStore class
Store (raw) algorithm class — the SLeeLa-facing handle to algorithm id 0.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 0 == native. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionVerifier #sleela 2.5 (lib/compression/SLCompressionVerifier.sleela)
SLCompressionVerifier class
Defines the SLeeLa standard-library type SLCompressionVerifier used within the compression library family.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
resolveExtension | int resolveExtension(String ext) | ---- extension resolution (mirrors sleela_compression_by_extension) ----- Returns the algorithm id for a known extension, or -1 if unrecognized. |
probeMagic | int probeMagic(String tag) | ---- content-signature probe (mirrors each plugin's probe()) ------------ Given a short leading-byte signature tag (as text), return the algorithm id that claims it, or -1. The actual byte comparison lives in the native plugin; here the Verifier encodes which magic belongs to which algorithm so a GUI can pre-classify. |
headerless | boolean headerless(int id) | headerless(id): true for algorithms with no reliable magic (Store, RLE, raw DEFLATE, Brotli), where probing by content cannot confirm the format — the caller must select it out-of-band by id or extension. |
verifyLoadable | int verifyLoadable(int id) | ---- loadability / lifecycle verification ------------------------------- verifyLoadable(id): 0 if the id is a real algorithm that can be loaded, else -2 (invalid). Mirrors the manager's id_ok guard. |
resultText | String resultText(int code) | ---- result-code text (mirrors sleela_compression_result_text) ---------- |
ok | boolean ok(int code) | No description in source. |
SLCompressionXz #sleela 2.5 (lib/compression/SLCompressionXz.sleela)
SLCompressionXz class
xz (LZMA2) algorithm class — the SLeeLa-facing handle to algorithm id 9.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionZip #sleela 2.5 (lib/compression/SLCompressionZip.sleela)
SLCompressionZip class
ZIP archive algorithm class — the SLeeLa-facing handle to algorithm id 14.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 3 == container. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionZlib #sleela 2.5 (lib/compression/SLCompressionZlib.sleela)
SLCompressionZlib class
zlib (RFC 1950) algorithm class — the SLeeLa-facing handle to algorithm id 5.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLCompressionZstd #sleela 2.5 (lib/compression/SLCompressionZstd.sleela)
SLCompressionZstd class
Zstandard algorithm class — the SLeeLa-facing handle to algorithm id 10.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
id | int id() | Registry identity (mirrors sleela_compressor_handler). |
name | String name() | No description in source. |
mime | String mime() | No description in source. |
extensions | String extensions() | No description in source. |
state | int state() | Capability state: 1 == backend. |
stateName | String stateName() | No description in source. |
canCompress | boolean canCompress() | Direction support advertised by the plugin vtable. |
canDecompress | boolean canDecompress() | No description in source. |
isNative | boolean isNative() | Native algorithms implement compress/decompress in-package (no external backend). |
needsBackend | boolean needsBackend() | A backend adapter must be registered before a backend algorithm can run. |
SLPackage #sleela 2.5 (lib/compression/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for compression.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
packageName | String packageName | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
available | boolean available() | No description in source. |