org.grinvin.io

Class LoaderSaverHelper


public class LoaderSaverHelper
extends java.lang.Object

Method Summary

static Element
checkElement(Element element, String rootElement)
static Document
loadDocument(InputStream input)
static Element
loadElement(InputStream input)
static Element
loadElementNonValidating(InputStream input, String rootElement)
static void
outputXML(Element element, DocType docType, OutputStream out)
static void
outputXML(Element element, OutputStream out)
static String
prepareSessionURI(HasURI hasURI, String prefix, String extension)

Method Details

checkElement

public static Element checkElement(Element element,
                                   String rootElement)
            throws IOFormatException

loadDocument

public static Document loadDocument(InputStream input)
            throws IOException

loadElement

public static Element loadElement(InputStream input)
            throws IOException

loadElementNonValidating

public static Element loadElementNonValidating(InputStream input,
                                               String rootElement)
            throws IOException

outputXML

public static void outputXML(Element element,
                             DocType docType,
                             OutputStream out)
            throws IOException

outputXML

public static void outputXML(Element element,
                             OutputStream out)
            throws IOException

prepareSessionURI

public static String prepareSessionURI(HasURI hasURI,
                                       String prefix,
                                       String extension)