|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.xml.XmlReaderFactory
public final class XmlReaderFactory
Factory for creating Reader from different sources suitable to read a xml document providing
autodetection of the character set encoding.
The autodetection mechanism follows the recommendations of Section F.1 of the XML specification.
| Method Summary | |
|---|---|
static Reader |
create(File file)
Creates a Reader from the given File with an autodetected character set
encoding. |
static Reader |
create(InputStream inputStream)
Creates a Reader from the given InputStream with an autodetected character set
encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Reader create(File file)
Reader from the given File with an autodetected character set
encoding.
file - the file to create a reader for
Reader
XmlEncodingException - if an unsupported encoding is detected or an error occurs while encoding
detectionpublic static Reader create(InputStream inputStream)
Reader from the given InputStream with an autodetected character set
encoding.
inputStream - the input stream to create a reader for
Reader
XmlEncodingException - if an unsupported encoding is detected or an error occurs while encoding
detection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||