public class JGloss1Converter extends Object
CloseMetaTagInputStream
. This is a primitive way to make the
JGloss 1 doc (which has a simple HTML format) XML conformant so that the Java 6 default XSLT
processor can be used on it. Then an XSLT style sheet
is
applied to convert the document to JGloss 2 format.Constructor and Description |
---|
JGloss1Converter() |
Modifier and Type | Method and Description |
---|---|
InputStream |
convert(InputStream in)
Convert the JGloss 1 document read by the given input stream to a JGloss 2 document.
|
static boolean |
needsConversion(InputStream in)
Tests if the input stream contains a JGloss 1 document which must be converted.
|
public JGloss1Converter() throws TransformerConfigurationException
public static boolean needsConversion(InputStream in) throws IOException
in
- Input Stream to test.true
if the input stream contains a JGloss 1 document which must be converted.IOException
- if reading from the input stream fails.IllegalArgumentException
- if the input stream does not support mark()
.public InputStream convert(InputStream in) throws TransformerException
in
- Input stream reading a JGloss 1 document.TransformerException
- if the document conversion fails.Copyright © 2001-2013 the JGloss developers. All Rights Reserved.