yext.graphml.graph2D
Class XMLXSLIOHandler

java.lang.Object
  extended byy.io.IOHandler
      extended byyext.graphml.graph2D.XMLXSLIOHandler

public class XMLXSLIOHandler
extends IOHandler

IOHandler that is able to read arbitrary XML files. An XSL stylesheet needs to be specified that transforms the input XML file to a valid input file for a reader delegate of type IOHandler.


Constructor Summary
XMLXSLIOHandler()
          Creates a new instance of the IOHandler.
XMLXSLIOHandler(GraphMLIOHandler readerDelegate)
          Creates a new instance of the IOHandler with the given reader delegate.
 
Method Summary
 boolean canRead()
          Returns true.
 boolean canWrite()
          Returns false.
 String getFileFormatString()
          Returns a textual description of the IOHandler.
 String getFileNameExtension()
          Returns the empty string since XML files can have file name extensions.
 IOHandler getReaderDelegate()
          Returns the IOHandler that will further process the XSL transformed XML input.
 Source getXSLSource()
          Returns the source for the XSL stylesheet to be used to transform the input.
 void read(Graph2D graph, InputStream in)
           
 void setReaderDelegate(GraphMLIOHandler reader)
          Sets the IOHandler that will further process the XSL transformed XML input.
 void setXSLSource(Source xslSource)
          Sets the source for the XSL stylesheet to be used to transform the input.
 void write(Graph2D graph, OutputStream out)
           
 
Methods inherited from class y.io.IOHandler
canWriteSubset, createObjectInputStream, createObjectOutputStream, hide, read, read, shouldSerialize, shouldSerialize, write, writeSubset, writeSubset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLXSLIOHandler

public XMLXSLIOHandler()
Creates a new instance of the IOHandler.


XMLXSLIOHandler

public XMLXSLIOHandler(GraphMLIOHandler readerDelegate)
Creates a new instance of the IOHandler with the given reader delegate.

Method Detail

getFileFormatString

public String getFileFormatString()
Returns a textual description of the IOHandler.


getFileNameExtension

public String getFileNameExtension()
Returns the empty string since XML files can have file name extensions.


canRead

public boolean canRead()
Returns true.


canWrite

public boolean canWrite()
Returns false.


setXSLSource

public void setXSLSource(Source xslSource)
Sets the source for the XSL stylesheet to be used to transform the input.


getXSLSource

public Source getXSLSource()
Returns the source for the XSL stylesheet to be used to transform the input.


setReaderDelegate

public void setReaderDelegate(GraphMLIOHandler reader)
Sets the IOHandler that will further process the XSL transformed XML input.


getReaderDelegate

public IOHandler getReaderDelegate()
Returns the IOHandler that will further process the XSL transformed XML input.


write

public void write(Graph2D graph,
                  OutputStream out)
           throws IOException
Throws:
IOException

read

public void read(Graph2D graph,
                 InputStream in)
          throws IOException
Throws:
IOException


Copyright ©2000-2009, yWorks GmbH. All rights reserved.