org.deegree.feature.persistence
Class BlobCodec
java.lang.Object
org.deegree.feature.persistence.BlobCodec
public class BlobCodec
- extends java.lang.Object
Provides methods for storing / retrieving GMLObject
instances in binary form, e.g. in BLOBs.
TODO improve namespace handling (should not be done for every single blob) TODO get FAST_INFOSET to work TODO
FAST_INFOSET with external vocabulary
- Version:
- $Revision: 28179 $, $Date: 2010-11-14 20:10:34 +0100 (So, 14. Nov 2010) $
- Author:
- Markus Schneider, last edited by: $Author: mschneider $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlobCodec
public BlobCodec(GMLVersion gmlVersion,
BlobCodec.Compression compression)
- Creates a new
BlobCodec
instance.
- Parameters:
gmlVersion
- gml version to use, must not be null
compression
- compression method to use, must not be null
encode
public void encode(GMLObject object,
java.util.Map<java.lang.String,java.lang.String> nsContext,
java.io.OutputStream os,
CRS crs)
throws FeatureStoreException,
javax.xml.stream.XMLStreamException,
javax.xml.stream.FactoryConfigurationError,
UnknownCRSException,
TransformationException,
java.io.IOException
- Encodes the given
GMLObject
to the specified output stream.
- Parameters:
object
- object to be encoded, must not be null
nsContext
- os
- output stream to write to, must not be null
crs
-
- Throws:
FeatureStoreException
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError
UnknownCRSException
TransformationException
java.io.IOException
decode
public GMLObject decode(java.io.InputStream is,
java.util.Map<java.lang.String,java.lang.String> nsContext,
ApplicationSchema schema,
CRS crs,
GMLReferenceResolver idResolver)
throws XMLParsingException,
javax.xml.stream.XMLStreamException,
UnknownCRSException,
javax.xml.stream.FactoryConfigurationError,
java.io.IOException
- Decodes the given
GMLObject
from the specified input stream.
- Parameters:
is
- input stream to read from, must not be null
nsContext
- schema
- application schema, must not be null
crs
- idResolver
-
- Returns:
-
- Throws:
XMLParsingException
javax.xml.stream.XMLStreamException
UnknownCRSException
javax.xml.stream.FactoryConfigurationError
java.io.IOException
Copyright © 2011. All Rights Reserved.