com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class DwgFormat

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public final class DwgFormat
    extends FormatBase

    Represents a DWG file.


    DWG (drawing) is the native format for several CAD packages including DraftSight, AutoCAD, BricsCAD, IntelliCAD.

    • Constructor Detail

      • DwgFormat

        public DwgFormat(String fileName)

        Initializes a new instance of the DwgFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a DwgFormat instance.
      • DwgFormat

        public DwgFormat(InputStream input)

        Initializes a new instance of the DwgFormat class.

        Parameters:
        input - A stream that contains the data for this DwgFormat.
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • cleanMetadata

        public void cleanMetadata()

        Removes writable metadata properties associated with the file. Metadata cleaning is not supported for this format.

        Overrides:
        cleanMetadata in class FormatBase
      • getDwgMetadata

        public final CadMetadata getDwgMetadata()

        Retrieves the DWG metadata.

        Returns:
        The CadMetadata package extracted from the file.
      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and optionally managed resources.

        Overrides:
        dispose in class FormatBase
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.