Packages

 

com.aspose.cad.fileformats.dwf.whip

Interface IDwfWhipParser

  • All Known Implementing Classes:
    DwfWhipParser


    public interface IDwfWhipParser

    Represents whip parser interface

    • Method Detail

      • getHaveReadFirstOpcode

        boolean getHaveReadFirstOpcode()

        Gets or sets value, that first operation code was read

      • setHaveReadFirstOpcode

        void setHaveReadFirstOpcode(boolean value)

        Gets or sets value, that first operation code was read

      • setHeuristics

        void setHeuristics(DwfFileHeuristics value)

        Gets or sets Heuristics

      • getParenCount

        int getParenCount()

        Gets paren count

      • readColor

        Color readColor()

        Reads color

        Returns:
        color was read
      • readCount

        int readCount()

        Reads count

        Returns:
        count was read
      • read

        byte[] read(int count)

        Reads series of bytes

        Parameters:
        count - count of values to read
        Returns:
        byte array
      • readString

        String readString(int maxSize)

        Reads string

        Parameters:
        maxSize - max count of read bytes
        Returns:
        string value
      • readString

        String readString(int maxSize,
                          boolean allowInitialOpenParen)

        Reads string

        Parameters:
        maxSize - max count of read bytes
        allowInitialOpenParen - allow initial open paren
        Returns:
        string value
      • readAsciiInt32

        int readAsciiInt32()

        Reads int number in ascii encoding

        Returns:
        integer value
      • readDouble

        double readDouble()

        Reads double value

        Returns:
        double value
      • readLogicalPoint

        DwfWhipLogicalPoint readLogicalPoint()

        Reads logical point

        Returns:
        logical point
      • readLogicalPoints

        DwfWhipLogicalPoint[] readLogicalPoints(int count,
                                                int bitCount)

        Reads series of logical point

        Parameters:
        count - count of logical point
        bitCount - bit count in evere value of point
        Returns:
        Array of logical points were read
      • readLogicalBox

        DwfWhipLogicalBox readLogicalBox()

        Reads logical box

        Returns:
        logical box
      • incrementParenCount

        int incrementParenCount()

        Increments paren count

        Returns:
        paren count
      • decrementParenCount

        int decrementParenCount()

        Decrements paren count

        Returns:
        paren count
      • nextIncarnation

        int nextIncarnation()

        Creates next incarnation

        Returns:
        incarnation value
      • eatWhiteSpace

        void eatWhiteSpace()

        Eats whitespaces

      • seek

        void seek(long offset)

        Seeks in stream

        Parameters:
        offset - offset value from current position
      • skipPastMatchingParen

        void skipPastMatchingParen(int terminatingParenLevel)

        Skips past matching paren level

        Parameters:
        terminatingParenLevel - terminating paren level
      • deUpdateCurrentPoint

        DwfWhipLogicalPoint deUpdateCurrentPoint(DwfWhipLogicalPoint point)

        Deupdates current point

        Parameters:
        point - current point to de-update
        Returns:
        current point after deupdating
      • updateCurrentPoint

        DwfWhipLogicalPoint updateCurrentPoint(DwfWhipLogicalPoint point)

        Updates current point

        Parameters:
        point - current point to update
        Returns:
        current point after updating