Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


oracle.spatial.network.lod
Interface PartitionBlobTranslator


public interface PartitionBlobTranslator

This interface defines the methods supported by a partition blob translator. In addition to these methods, a PartitionBlobTranslator implementation class must be a singleton, with a static method 'getPartitionBlobTranslator', whose signature must be

   public static PartitionBlobTranslator getPartitionBlobTranslator();
 
Since:
11gR1

Method Summary
 LogicalPartition blobToPartition(java.lang.String networkName, int partitionId, java.io.InputStream is, boolean loadUserData)
          Reads a partition BLOB from the specified input stream and translates it into a LogicalPartition object.
 boolean partitionToBlob(LogicalPartition partition, java.io.OutputStream os, boolean includeUserData)
          Translates the LogicalPartition object into a partition BLOB, and outputs it into the specified output stream.

 

Method Detail

blobToPartition

LogicalPartition blobToPartition(java.lang.String networkName,
                                 int partitionId,
                                 java.io.InputStream is,
                                 boolean loadUserData)
                                 throws LODNetworkException
Reads a partition BLOB from the specified input stream and translates it into a LogicalPartition object.
Parameters:
networkName - network name
partitionId - partition ID
is - input stream
loadUserData - whether to include the user data into the returned LogicalPartition object
Returns:
logical partition
Throws:
LODNetworkException

partitionToBlob

boolean partitionToBlob(LogicalPartition partition,
                        java.io.OutputStream os,
                        boolean includeUserData)
                        throws LODNetworkException
Translates the LogicalPartition object into a partition BLOB, and outputs it into the specified output stream.
Parameters:
partition - logical partition
os - output stream
includeUserData - whether to include user data in the generated partition BLOB
Returns:
whether user data is included in the generated partition BLOB. User data is includes in the partition BLOB if the input logical partition contains users data and the input includeUserData flag is set to true.
Throws:
LODNetworkException

Skip navigation links

Oracle® Spatial Java API Reference
11g Release 1 (11.1)

B28401-02


Copyright © 2007, 2008, Oracle. All Rights Reserved.