|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecty.io.IOHandler
y.io.XmlXslIOHandler
public class XmlXslIOHandler
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 |
canWrite()
Returns false . |
java.lang.String |
getFileFormatString()
Returns a textual description of the IOHandler. |
java.lang.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. |
javax.xml.transform.Source |
getXslSource()
Returns the source for the XSL stylesheet to be used to transform the input. |
void |
read(Graph2D graph,
java.io.InputStream in)
Adds the contents that are read from the stream to the given graph. |
void |
setReaderDelegate(GraphMLIOHandler reader)
Sets the IOHandler that will further process the XSL transformed XML input. |
void |
setXslSource(javax.xml.transform.Source xslSource)
Sets the source for the XSL stylesheet to be used to transform the input. |
void |
write(Graph2D graph,
java.io.OutputStream out)
Writes the contents of the given graph to a stream |
Methods inherited from class y.io.IOHandler |
---|
canRead, 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 |
---|
public XmlXslIOHandler()
public XmlXslIOHandler(GraphMLIOHandler readerDelegate)
Method Detail |
---|
public java.lang.String getFileFormatString()
getFileFormatString
in class IOHandler
public java.lang.String getFileNameExtension()
getFileNameExtension
in class IOHandler
public boolean canWrite()
false
.
canWrite
in class IOHandler
public void setXslSource(javax.xml.transform.Source xslSource)
public javax.xml.transform.Source getXslSource()
public void setReaderDelegate(GraphMLIOHandler reader)
public IOHandler getReaderDelegate()
public void write(Graph2D graph, java.io.OutputStream out) throws java.io.IOException
IOHandler
write
in class IOHandler
java.io.IOException
public void read(Graph2D graph, java.io.InputStream in) throws java.io.IOException
IOHandler
read
in class IOHandler
java.io.IOException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |