Class AdobePathReader

    • Constructor Summary

      Constructors 
      Constructor Description
      AdobePathReader​(byte[] data)
      Creates a path reader that will read its data from a byte array.
      AdobePathReader​(java.io.DataInput data)
      Creates a path reader that will read its data from a DataInput, such as an ImageInputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Path2D readPath()
      Builds the path by reading from the supplied input.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AdobePathReader

        public AdobePathReader​(java.io.DataInput data)
        Creates a path reader that will read its data from a DataInput, such as an ImageInputStream. The data length is assumed to be a multiple of 26.
        Parameters:
        data - the input to read data from.
        Throws:
        java.lang.IllegalArgumentException - if data is null
      • AdobePathReader

        public AdobePathReader​(byte[] data)
        Creates a path reader that will read its data from a byte array. The array length must be a multiple of 26, and greater than 0.
        Parameters:
        data - the array to read data from.
        Throws:
        java.lang.IllegalArgumentException - if data is null, or not a multiple of 26.
    • Method Detail

      • readPath

        public java.awt.geom.Path2D readPath()
                                      throws java.io.IOException
        Builds the path by reading from the supplied input.
        Returns:
        the path
        Throws:
        javax.imageio.IIOException - if the input contains a bad path data.
        java.io.IOException - if a general I/O exception occurs during reading.