Package org.apache.commons.compress.compressors.lz77support

# Class LZ77Compressor.Block

java.lang.Object
org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block

Direct Known Subclasses:
  `LZ77Compressor.AbstractReference`, `LZ77Compressor.EOD`

Enclosing class:
  `LZ77Compressor`

public abstract static class LZ77Compressor.Block extends Object
Base class representing blocks the compressor may emit.

This class is not supposed to be subclassed by classes outside of Commons Compress so it is considered internal and changed that would break subclasses may get introduced with future releases.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `LZ77Compressor.Block.BlockType`
  Enumerates the block types the compressor emits.

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  ``
  `Block()`
  Deprecated.
  Use `Block()`.
  `protected`
  `Block(LZ77Compressor.Block.BlockType type)`
  Constructs a new instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LZ77Compressor.Block.BlockType`
  `getType()`
  Gets the the block type.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Block

    @Deprecated public Block()
    Deprecated.
    Use `Block()`.
    Constructs a new typeless instance.

  - ### Block

    protected Block(LZ77Compressor.Block.BlockType type)
    Constructs a new instance.
    Parameters:
      `type` - the block type, may not be `null`.

- ## Method Details

  - ### getType

    public LZ77Compressor.Block.BlockType getType()
    Gets the the block type.
    Returns:
      the the block type.

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`