@Deprecated public final class DwgFormat extends FormatBase
Represents a DWG file.
Constructor and Description |
---|
DwgFormat(InputStream input)
Deprecated.
Initializes a new instance of the
DwgFormat class. |
DwgFormat(String fileName)
Deprecated.
Initializes a new instance of the
DwgFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Deprecated.
Removes writable metadata properties associated with the file.
|
protected void |
dispose(boolean disposing)
Deprecated.
Releases unmanaged and optionally managed resources.
|
CadMetadata |
getDwgMetadata()
Deprecated.
Retrieves the DWG metadata.
|
int |
getType()
Deprecated.
Gets the type of the loaded file.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public DwgFormat(String fileName)
Initializes a new instance of the DwgFormat
class.
fileName
- A string that contains the full name of the file from which to create a DwgFormat
instance.public DwgFormat(InputStream input)
Initializes a new instance of the DwgFormat
class.
input
- A stream that contains the data for this DwgFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public void cleanMetadata()
Removes writable metadata properties associated with the file. Metadata cleaning is not supported for this format.
cleanMetadata
in class FormatBase
public final CadMetadata getDwgMetadata()
Retrieves the DWG metadata.
CadMetadata
package extracted from the file.protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.Copyright © 2020. All rights reserved.