org.deegree.commons.xml.stax
Class FIUtils

java.lang.Object
  extended by org.deegree.commons.xml.stax.FIUtils

public class FIUtils
extends Object

Provides convenience methods for working with Fast Infoset encoded XML.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: markus $

Constructor Summary
FIUtils()
           
 
Method Summary
static com.sun.xml.fastinfoset.stax.StAXDocumentParser getFIReader(InputStream is, com.sun.xml.fastinfoset.vocab.ParserVocabulary voc, String vocUri)
          Creates a new StAXDocumentParser (Fast Infoset XMLStreamReader) instance.
static com.sun.xml.fastinfoset.stax.StAXDocumentSerializer getFIWriter(OutputStream os, com.sun.xml.fastinfoset.vocab.SerializerVocabulary voc, String vocUri)
          Creates a new StAXDocumentSerializer (Fast Infoset XMLStreamWriter) instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIUtils

public FIUtils()
Method Detail

getFIWriter

public static com.sun.xml.fastinfoset.stax.StAXDocumentSerializer getFIWriter(OutputStream os,
                                                                              com.sun.xml.fastinfoset.vocab.SerializerVocabulary voc,
                                                                              String vocUri)
Creates a new StAXDocumentSerializer (Fast Infoset XMLStreamWriter) instance.

Parameters:
os - binary stream to write to, must not be null
voc - vocabulary to use, must not be null
vocUri - uri used for declaring the external vocabulary, must not be null or empty
Returns:
binary XML writer, never null

getFIReader

public static com.sun.xml.fastinfoset.stax.StAXDocumentParser getFIReader(InputStream is,
                                                                          com.sun.xml.fastinfoset.vocab.ParserVocabulary voc,
                                                                          String vocUri)
Creates a new StAXDocumentParser (Fast Infoset XMLStreamReader) instance.

Parameters:
is - binary stream to read from, must not be null
voc - vocabulary to use, must not be null
vocUri - uri used for declaring the external vocabulary, must not be null or empty
Returns:
binary XML reader, never null


Copyright © 2011. All Rights Reserved.