public class TLcdNumericGraphDecoder extends Object implements ILcdInputStreamFactoryCapable
TLcdNumericGraphEncoder
.
TLcdNumericGraphEncoder
for more information on how
the splitting is done) will be lazily loaded when first needed, and kept in memory using a
SoftReference
to allow reclaiming memory when no longer needed. Whenever a partition has
been changed, it will be locked in memory until it has been written to disk
again.
TLcdNumericGraphEncoder
Constructor and Description |
---|
TLcdNumericGraphDecoder()
Creates a new
com.luciad.network.graph.numeric.TLcdNumericGraphDecoder instance. |
Modifier and Type | Method and Description |
---|---|
TLcdNumericGraph |
decodeGraph(String aGraphTopologySource)
Decodes the specified graph.
|
TLcdNumericGraph |
decodeGraph(String aGraphTopologySource,
String aGraphEdgeValuesSource)
Decodes the specified graph with corresponding edge values.
|
ILcdInputStreamFactory |
getInputStreamFactory()
Returns the
com.luciad.io.ILcdInputStreamFactory that is used for creating input streams
in this decoder. |
void |
setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
Sets the
ILcdInputStreamFactory that will be used for creating input streams in this
decoder. |
public TLcdNumericGraphDecoder()
com.luciad.network.graph.numeric.TLcdNumericGraphDecoder
instance.public ILcdInputStreamFactory getInputStreamFactory()
com.luciad.io.ILcdInputStreamFactory
that is used for creating input streams
in this decoder.getInputStreamFactory
in interface ILcdInputStreamFactoryCapable
setInputStreamFactory(com.luciad.io.ILcdInputStreamFactory)
public void setInputStreamFactory(ILcdInputStreamFactory aInputStreamFactory)
ILcdInputStreamFactory
that will be used for creating input streams in this
decoder.setInputStreamFactory
in interface ILcdInputStreamFactoryCapable
aInputStreamFactory
- the input stream factory that will be used for creating input streams
in this decoder.getInputStreamFactory()
public TLcdNumericGraph decodeGraph(String aGraphTopologySource) throws IOException
aGraphTopologySource
- the source name of the base file of the graph to be decoded.IOException
- if an I/O exception occurs during decoding.public TLcdNumericGraph decodeGraph(String aGraphTopologySource, String aGraphEdgeValuesSource) throws IOException
aGraphTopologySource
- the source name of the base topology file of the graph to be decoded.aGraphEdgeValuesSource
- the source name of the base edge value file of the graph to be decoded.IOException
- if an I/O exception occurs during decoding.