org.apache.xindice.client.corba
Class EncodedBufferConverter
java.lang.Object
|
+--org.apache.xindice.client.corba.EncodedBufferConverter
- public class EncodedBufferConverter
- extends java.lang.Object
Converts an EncodedBuffer into a Configuration object.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncodedBufferConverter
public EncodedBufferConverter()
convertToConfiguration
public static Configuration convertToConfiguration(EncodedBuffer buffer)
- Converts an EncodedBuffer into a Configuration object. Assumes the
buffer contains valid XML data.
- Parameters:
buffer
- the buffer containing XML to convert- Returns:
- A Configuration object encapsualting the XML.
convertToDocument
public static org.w3c.dom.Document convertToDocument(EncodedBuffer buffer)
- Converts an EncodedBuffer into a Document object. Assumes the
buffer contains valid XML data.
- Parameters:
buffer
- the buffer containing XML to convert- Returns:
- A Document object encapsualting the XML.
convertFromDocument
public static EncodedBuffer convertFromDocument(org.w3c.dom.Node node)
- Converts a Document object into an EncodedBuffer.
- Parameters:
doc
- the Node to convert to an EncodedBufferencoding
- the encoding to use when converting the doc- Returns:
- An EncodedBuffer containing the serialized document
remove
public void remove()
Copyright (c) 1999-2001 The Apache Software Foundation