org.exoplatform.social.extras.migration.io
Class NodeStreamHandler

java.lang.Object
  extended by org.exoplatform.social.extras.migration.io.NodeStreamHandler

public class NodeStreamHandler
extends Object

Stream handler.

Version:
$Revision$
Author:
Alain Defrance

Constructor Summary
NodeStreamHandler()
           
 
Method Summary
 NodeData readNode(InputStream is)
          Read data from a stream
 void writeNode(javax.jcr.Node node, OutputStream os)
          Write a node to a stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeStreamHandler

public NodeStreamHandler()
Method Detail

writeNode

public void writeNode(javax.jcr.Node node,
                      OutputStream os)
               throws javax.jcr.RepositoryException,
                      IOException
Write a node to a stream

Parameters:
node - the node
os - the stream
Throws:
javax.jcr.RepositoryException
IOException

readNode

public NodeData readNode(InputStream is)
Read data from a stream

Parameters:
is - the stream
Returns:


Copyright © 2013 eXo Platform SAS. All Rights Reserved.