Packages

 

com.aspose.cad.fileformats.dwf.whip

Class DwfWhipParser

    • Constructor Detail

      • DwfWhipParser

        public DwfWhipParser(InputStream stream,
                     com.aspose.cad_internal.fileformats.dwf.whip.objects.service.DwfWhipMatrix transformationMatrix)

        Initializes a new instance of the DwfWhipParser class

        Parameters:
        stream - Stream to read from
      • DwfWhipParser

        public DwfWhipParser(InputStream stream)

        Initializes a new instance of the DwfWhipParser class

        Parameters:
        stream - Stream to read from
      • DwfWhipParser

        public DwfWhipParser(String filename,
                     com.aspose.cad_internal.fileformats.dwf.whip.objects.service.DwfWhipMatrix transformationMatrix)

        Initializes a new instance of the DwfWhipParser class

        Parameters:
        filename - file name to read from
    • Method Detail

      • getHaveReadFirstOpcode

        public boolean getHaveReadFirstOpcode()

        Gets or sets value, that first operation code was read

        Specified by:
        getHaveReadFirstOpcode in interface IDwfWhipParser
      • setHaveReadFirstOpcode

        public void setHaveReadFirstOpcode(boolean value)

        Gets or sets value, that first operation code was read

        Specified by:
        setHaveReadFirstOpcode in interface IDwfWhipParser
      • parse_internalized

        public com.aspose.ms.System.Collections.Generic.List<com.aspose.cad_internal.fileformats.dwf.whip.objects.drawable.DwfWhipDrawable> parse_internalized()

        Parses file

        Returns:
        List of drawable objects
      • readCount

        public int readCount()

        Reads count

        Specified by:
        readCount in interface IDwfWhipParser
        Returns:
        count was read
      • read

        public byte[] read(int count)

        Reads series of bytes

        Specified by:
        read in interface IDwfWhipParser
        Parameters:
        count - count of values to read
        Returns:
        byte array
      • readString

        public String readString(int maxSize)

        Reads string

        Specified by:
        readString in interface IDwfWhipParser
        Parameters:
        maxSize - max count of bytes
        Returns:
        string value
      • readString

        public String readString(int maxSize,
                        boolean allowInitialOpenParen)

        Reads string

        Specified by:
        readString in interface IDwfWhipParser
        Parameters:
        maxSize - max count of bytes
        allowInitialOpenParen - allow initial open paren
        Returns:
        string value
      • readAsciiInt32

        public int readAsciiInt32()

        Reads int value in Ascii encoding

        Specified by:
        readAsciiInt32 in interface IDwfWhipParser
        Returns:
        integer value was read
      • readDouble

        public double readDouble()

        Reads double value

        Specified by:
        readDouble in interface IDwfWhipParser
        Returns:
        double value
      • readLogicalPoints

        public DwfWhipLogicalPoint[] readLogicalPoints(int count,
                                              int bitCount)

        Reads array of logical points

        Specified by:
        readLogicalPoints in interface IDwfWhipParser
        Parameters:
        count - count of points
        bitCount - bit count in every value of point
        Returns:
        Array of logical points were read
      • seek

        public void seek(long offset)

        Seeks in file from current posiotion

        Specified by:
        seek in interface IDwfWhipParser
        Parameters:
        offset - offset to read
      • nextIncarnation

        public int nextIncarnation()

        Creates next incarnation

        Specified by:
        nextIncarnation in interface IDwfWhipParser
        Returns:
        ncarnation value
      • skipPastMatchingParen

        public void skipPastMatchingParen(int terminatingParenLevel)

        Skips past matching paren

        Specified by:
        skipPastMatchingParen in interface IDwfWhipParser
        Parameters:
        terminatingParenLevel - terminating paren level