org.apache.commons.feedparser.tools
Class XMLEncodingParser

java.lang.Object
  extended by org.apache.commons.feedparser.tools.XMLEncodingParser

public class XMLEncodingParser
extends Object

Given an XML document pull out the encoding or the default (UTF-8) if not specified.

Author:
Kevin A. Burton

Field Summary
static String ENCODING
           
 
Constructor Summary
XMLEncodingParser()
           
 
Method Summary
static void main(String[] args)
           
static String parse(byte[] content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCODING

public static final String ENCODING
See Also:
Constant Field Values
Constructor Detail

XMLEncodingParser

public XMLEncodingParser()
Method Detail

parse

public static String parse(byte[] content)
                    throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.