NetKernel APIs


org.ten60.netkernel.xml.transrepresentation
Class SerializedDOMAspect

java.lang.Object
  extended byorg.ten60.netkernel.xml.transrepresentation.SerializedDOMAspect
All Implemented Interfaces:
IAspectBinaryStream, IURAspect

public class SerializedDOMAspect
extends Object
implements IAspectBinaryStream

Serialise DOM to a binary stream


Constructor Summary
SerializedDOMAspect(Node aNode, boolean aIsHTML)
           
 
Method Summary
 String getEncoding()
           
 void write(OutputStream aStream)
          Write state to OutputStream
static void writeAttr(Writer aWriter, String aInput)
           
static void writeEscaped(Writer aWriter, String aInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedDOMAspect

public SerializedDOMAspect(Node aNode,
                           boolean aIsHTML)
Method Detail

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface IAspectBinaryStream

write

public void write(OutputStream aStream)
           throws IOException
Description copied from interface: IAspectBinaryStream
Write state to OutputStream

Specified by:
write in interface IAspectBinaryStream
Parameters:
aStream - the output stream
Throws:
IOException - thrown if we fail to write

writeEscaped

public static void writeEscaped(Writer aWriter,
                                String aInput)
                         throws IOException
Throws:
IOException

writeAttr

public static void writeAttr(Writer aWriter,
                             String aInput)
                      throws IOException
Throws:
IOException

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.