public class GuessEncodingCharsetFinder extends AbstractCharactersetFinder
| Modifier and Type | Class and Description |
|---|---|
static class |
GuessEncodingCharsetFinder.DummyCharset
A dummy charset to detect a default hit.
|
| Constructor and Description |
|---|
GuessEncodingCharsetFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.nio.charset.Charset |
detectCharsetImpl(byte[] buffer)
Worker method for implementations to override.
|
detectCharset, detectCharset, getBufferSize, setBufferSizeprotected java.nio.charset.Charset detectCharsetImpl(byte[] buffer)
throws java.lang.Exception
AbstractCharactersetFinderThe interface contract is that the data buffer must not be altered in any way.
detectCharsetImpl in class AbstractCharactersetFinderbuffer - the buffer of data no bigger than the requested
best buffer size. This can,
very efficiently, be turned into an InputStream using a
ByteArrayInputStream.java.lang.Exception - Any exception, checked or notCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.