org.gvsig.remoteclient.utils
Class EncodingXMLParser

java.lang.Object
  extended by org.kxml2.io.KXmlParser
      extended by org.gvsig.remoteclient.utils.EncodingXMLParser
All Implemented Interfaces:
org.xmlpull.v1.XmlPullParser
Direct Known Subclasses:
XMLSchemaParser

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
EncodingXMLParser()
           
 
Method Summary
 void setInput(java.io.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 Detail

EncodingXMLParser

public EncodingXMLParser()
Method Detail

setInput

public void setInput(java.io.File file)
              throws org.xmlpull.v1.XmlPullParserException,
                     java.io.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
java.io.IOException


Copyright © 2014 gvSIG Association. All Rights Reserved.