Class EncodingXMLParser

java.lang.Object
org.kxml2.io.KXmlParser
org.gvsig.remoteclient.utils.EncodingXMLParser
All Implemented Interfaces:
org.xmlpull.v1.XmlPullParser

public class EncodingXMLParser extends org.kxml2.io.KXmlParser
This class is a XML pull parser that discover and manage the file encoding
Author:
Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
  • Field Summary

    Fields inherited from interface org.xmlpull.v1.XmlPullParser

    CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setInput(File file)
    This method reads the first bytes of the file and try to discover the file encoding.

    Methods inherited from class org.kxml2.io.KXmlParser

    defineEntityReplacementText, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getColumnNumber, getDepth, getEventType, getFeature, getInputEncoding, getLineNumber, getName, getNamespace, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getPositionDescription, getPrefix, getProperty, getText, getTextCharacters, isAttributeDefault, isEmptyElementTag, isWhitespace, next, nextTag, nextText, nextToken, require, setFeature, setInput, setInput, setProperty, skipSubTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EncodingXMLParser

      public EncodingXMLParser()
  • Method Details

    • setInput

      public void setInput(File file) throws org.xmlpull.v1.XmlPullParserException, IOException
      This method reads the first bytes of the file and try to discover the file encoding. It parses the file with retrieved encoding.
      Parameters:
      file -
      Throws:
      org.xmlpull.v1.XmlPullParserException
      IOException