Class SOMParser

    • Constructor Detail

      • SOMParser

        public SOMParser()
    • Method Detail

      • getBinary

        public IBinaryParser.IBinaryFile getBinary​(byte[] hints,
                                                   org.eclipse.core.runtime.IPath path)
                                            throws java.io.IOException
        Description copied from interface: IBinaryParser
        Creates an IBinaryFile.
        Specified by:
        getBinary in interface IBinaryParser
        Parameters:
        hints - - array byte that can be use to recognise the file. Can be null or empty array when no hints are passed.
        Throws:
        java.io.IOException
      • getFormat

        public java.lang.String getFormat()
        Description copied from interface: IBinaryParser
        Returns the name of the Format.
        Specified by:
        getFormat in interface IBinaryParser
      • isBinary

        public boolean isBinary​(byte[] hints,
                                org.eclipse.core.runtime.IPath path)
        Description copied from interface: IBinaryParser
        True if the resource is a binary.
        Specified by:
        isBinary in interface IBinaryParser
      • getHintBufferSize

        public int getHintBufferSize()
        Description copied from interface: IBinaryParser
        Get a hint of the needed buffer size to recognize the file.
        Specified by:
        getHintBufferSize in interface IBinaryParser
      • getAdapter

        public <T> T getAdapter​(java.lang.Class<T> adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
        Overrides:
        getAdapter in class org.eclipse.core.runtime.PlatformObject