public class IlvDXFStreamFactory extends Object implements IlvManagerStreamFactory
IlvManager
to read a DXF file.
To achieve this, it uses an IlvDXFInputStream
instance.
For example, to read a DXF file into an IlvManager
you can proceed as below:
IlvDXFStreamFactory factory = new IlvDXFStreamFactory(); // eventually configure your factory myManager.setStreamFactory(factory); myManager.read("file.dxf");
IlvDXFInputStream
Constructor and Description |
---|
IlvDXFStreamFactory()
Builds an
IlvDXFStreamFactory instance with a default
IlvDXFReaderConfigurator . |
IlvDXFStreamFactory(IlvDXFReaderConfigurator rc)
Builds an
IlvDXFStreamFactory instance configured with
a IlvDXFReaderConfigurator . |
Modifier and Type | Method and Description |
---|---|
protected IlvDXFReader |
createDXFReader()
Creates an
IlvDXFReader that will be used by the
IlvDXFInputStream to fill an IlvManager from
the contents of an IlvDXF |
IlvInputStream |
createInputStream(InputStream stream)
By default, this method returns an
IlvDXFInputStream
to read a DXF file. |
IlvOutputStream |
createOutputStream(OutputStream stream)
Returns an
IlvInputStream . |
IlvDXFReaderConfigurator |
getReaderConfigurator()
Returns the
IlvDXFReaderConfigurator . |
boolean |
isIVLMode()
Returns
true if using the standard IVL format. |
void |
setIVLMode(boolean ivl)
Allows you to revert to the standard IVL input and output format.
|
public IlvDXFStreamFactory()
IlvDXFStreamFactory
instance with a default
IlvDXFReaderConfigurator
.public IlvDXFStreamFactory(IlvDXFReaderConfigurator rc)
IlvDXFStreamFactory
instance configured with
a IlvDXFReaderConfigurator
.public final IlvDXFReaderConfigurator getReaderConfigurator()
IlvDXFReaderConfigurator
.public final void setIVLMode(boolean ivl)
public final boolean isIVLMode()
true
if using the standard IVL format.setIVLMode(boolean)
protected IlvDXFReader createDXFReader()
IlvDXFReader
that will be used by the
IlvDXFInputStream
to fill an IlvManager
from
the contents of an IlvDXF
createOutputStream(java.io.OutputStream)
public IlvOutputStream createOutputStream(OutputStream stream)
IlvInputStream
. The method always returns
an instance of IlvInputStream
.createOutputStream
in interface IlvManagerStreamFactory
public IlvInputStream createInputStream(InputStream stream)
IlvDXFInputStream
to read a DXF file.
In IVL mode it returns an instance of IlvInputStream
.createInputStream
in interface IlvManagerStreamFactory
setIVLMode(boolean)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.