Class Tile

All Implemented Interfaces:
Streamable

public class Tile extends AbstractStructuredObject
  • Field Details

    • MAX_DATA_LEN

      private static final int MAX_DATA_LEN
      See Also:
    • tilePosition

      private TilePosition tilePosition
    • tileSize

      private TileSize tileSize
    • bandImage

      private BandImage bandImage
    • data

      private byte[] data
    • ideStructureParameter

      private IDEStructureParameter ideStructureParameter
    • encoding

      private byte encoding
    • ideSize

      private byte ideSize
  • Constructor Details

    • Tile

      public Tile()
  • Method Details

    • writeContent

      public void writeContent(OutputStream os) throws IOException
      Description copied from class: AbstractStructuredObject
      Helper method to write the contents of the Object.
      Overrides:
      writeContent in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - throws an I/O exception if one occurred
    • writeStart

      protected void writeStart(OutputStream os) throws IOException
      Description copied from class: AbstractStructuredObject
      Helper method to write the start of the Object.
      Overrides:
      writeStart in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - throws an I/O exception if one occurred
    • writeEnd

      protected void writeEnd(OutputStream os) throws IOException
      Description copied from class: AbstractStructuredObject
      Helper method to write the end of the Object.
      Overrides:
      writeEnd in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - an I/O exception if one occurred
    • setPosition

      public void setPosition(TilePosition tilePosition)
    • setSize

      public void setSize(TileSize tileSize)
    • setImageData

      public void setImageData(byte[] imageData)
    • writeChunksToStream

      protected static void writeChunksToStream(byte[] data, byte[] dataHeader, int lengthOffset, int maxChunkLength, OutputStream os) throws IOException
      Throws:
      IOException
    • setImageEncodingParameter

      public void setImageEncodingParameter(byte encoding)
    • setImageIDESizeParameter

      public void setImageIDESizeParameter(byte ideSize)
    • setIDEStructureParameter

      public void setIDEStructureParameter(IDEStructureParameter ideStructureParameter)
    • getImageEncodingParameter

      private byte[] getImageEncodingParameter()
    • getImageIDESizeParameter

      private byte[] getImageIDESizeParameter()
    • setBandImage

      public void setBandImage(BandImage bandImage)