ilog.views.dxf
Class IlvDXFStreamFactory

java.lang.Object
  extended by ilog.views.dxf.IlvDXFStreamFactory
All Implemented Interfaces:
IlvManagerStreamFactory

public class IlvDXFStreamFactory
extends Object
implements IlvManagerStreamFactory

This class allows an 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");
 

Since:
JViews 8.0
See Also:
IlvDXFInputStream

Constructor Summary
IlvDXFStreamFactory()
          Builds an IlvDXFStreamFactory instance with a default IlvDXFReaderConfigurator.
IlvDXFStreamFactory(IlvDXFReaderConfigurator rc)
          Builds an IlvDXFStreamFactory instance configured with a IlvDXFReaderConfigurator.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDXFStreamFactory

public IlvDXFStreamFactory()
Builds an IlvDXFStreamFactory instance with a default IlvDXFReaderConfigurator.

See Also:
IlvManager.setStreamFactory(ilog.views.io.IlvManagerStreamFactory)

IlvDXFStreamFactory

public IlvDXFStreamFactory(IlvDXFReaderConfigurator rc)
Builds an IlvDXFStreamFactory instance configured with a IlvDXFReaderConfigurator.

See Also:
IlvManager.setStreamFactory(ilog.views.io.IlvManagerStreamFactory)
Method Detail

getReaderConfigurator

public final IlvDXFReaderConfigurator getReaderConfigurator()
Returns the IlvDXFReaderConfigurator.


setIVLMode

public final void setIVLMode(boolean ivl)
Allows you to revert to the standard IVL input and output format.


isIVLMode

public final boolean isIVLMode()
Returns true if using the standard IVL format.

See Also:
setIVLMode(boolean)

createDXFReader

protected IlvDXFReader createDXFReader()
Creates an IlvDXFReader that will be used by the IlvDXFInputStream to fill an IlvManager from the contents of an IlvDXF

See Also:
createOutputStream(java.io.OutputStream)

createOutputStream

public IlvOutputStream createOutputStream(OutputStream stream)
Returns an IlvInputStream. The method always returns an instance of IlvInputStream.

Specified by:
createOutputStream in interface IlvManagerStreamFactory

createInputStream

public IlvInputStream createInputStream(InputStream stream)
By default, this method returns an IlvDXFInputStream to read a DXF file. In IVL mode it returns an instance of IlvInputStream.

Specified by:
createInputStream in interface IlvManagerStreamFactory
See Also:
setIVLMode(boolean)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.