Class XMLToXTalk
java.lang.Object
org.apache.vinci.transport.document.XMLToXTalk
Class for parsing an XML document and converting directly to XTalk.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
This is a SAX document handler to parse XML into VinciFrames. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Utility class not intended to be instantiated. -
Method Summary
Modifier and TypeMethodDescription(package private) static String
static void
private static void
private static int
updateElement
(RandomAccessFile raf, ArrayList counts, int index) static void
xmlToXTalk
(Reader r, String filename, boolean purgeWhitespace, String xml_filename) Right now we assume there are NO processing instructions.
-
Constructor Details
-
XMLToXTalk
private XMLToXTalk()Utility class not intended to be instantiated.
-
-
Method Details
-
convert
-
xmlToXTalk
public static void xmlToXTalk(Reader r, String filename, boolean purgeWhitespace, String xml_filename) throws ServiceException, IOException Right now we assume there are NO processing instructions. Given an XML file, create an XTalk representation of that data. If xml_filename is non-null, then this method will also create a UTF-8 representation of the xml file, exactly mimicing the XTalk encoding (e.g. removing irrelevant whitespace, expanding entity refs, etc).- Parameters:
r
- -filename
- -purgeWhitespace
- -xml_filename
- -- Throws:
ServiceException
- -IOException
- -
-
updateElement
private static int updateElement(RandomAccessFile raf, ArrayList counts, int index) throws IOException - Throws:
IOException
-
skipString
- Throws:
IOException
-
main
- Throws:
Exception
-