org.outerj.daisy.xmlutil
Class XmlEncodingDetector

java.lang.Object
  extended by org.outerj.daisy.xmlutil.XmlEncodingDetector

public class XmlEncodingDetector
extends java.lang.Object

Utility code to detect the encoding of XML provided as a byte array. This code is based on the class com.sun.syndication.io.XmlReader from the Rome project (https://rome.dev.java.net/), which is licensed under the Apache V2 license (and doesn't include a NOTICE file).


Constructor Summary
XmlEncodingDetector()
           
 
Method Summary
static java.lang.String detectEncoding(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlEncodingDetector

public XmlEncodingDetector()
Method Detail

detectEncoding

public static java.lang.String detectEncoding(byte[] data)


Copyright © -2012 . All Rights Reserved.