public final class DwgFormat extends FormatBase
Represents binary DWG format.
Constructor and Description |
---|
DwgFormat(InputStream input)
Initializes a new instance of the
DwgFormat class. |
DwgFormat(String fileName)
Initializes a new instance of the
DwgFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes metadata.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
CadMetadata |
getDwgMetadata()
Retrieves the DWG metadata.
|
int |
getType()
Gets document type.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public DwgFormat(String fileName)
Initializes a new instance of the DwgFormat
class.
fileName
- Absolute path to the file.public DwgFormat(InputStream input)
Initializes a new instance of the DwgFormat
class.
input
- File stream.public int getType()
Gets document type.
getType
in class FormatBase
public void cleanMetadata()
Removes metadata. Not supported for current format.
cleanMetadata
in class FormatBase
public final CadMetadata getDwgMetadata()
Retrieves the DWG metadata.
CadMetadata
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 © 2019. All rights reserved.