Class SofnSegment


  • public class SofnSegment
    extends Segment
    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
      • width

        public final int width
      • height

        public final int height
      • numberOfComponents

        public final int numberOfComponents
      • precision

        public final int precision
    • Constructor Detail

      • SofnSegment

        public SofnSegment​(int marker,
                           byte[] segmentData)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • SofnSegment

        public SofnSegment​(int marker,
                           int markerLength,
                           java.io.InputStream is)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getComponents

        public SofnSegment.Component[] getComponents()
        Returns a copy of all the components.
        Returns:
        the components
      • getComponents

        public SofnSegment.Component getComponents​(int index)
        Returns the component at the specified index.
        Parameters:
        index - the array index
        Returns:
        the component
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class Segment