public class EncodingDetector
extends java.lang.Object
| Constructor and Description |
|---|
EncodingDetector() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
inferStreamEncoding(java.io.InputStream is,
Logger err)
Try to detect the encoding from the start of the input stream
|
public static java.lang.String inferStreamEncoding(java.io.InputStream is,
Logger err)
throws java.io.IOException
is - the input streamerr - logger to be used for diagnostics, or nulljava.io.IOException - if it isn't possible to mark the current position on the input stream and read aheadCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.