|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.encoding.AbstractCharactersetFinder
org.alfresco.encoding.GuessEncodingCharsetFinder
public class GuessEncodingCharsetFinder
Uses the Guess Encoding library.
Nested Class Summary | |
---|---|
static class |
GuessEncodingCharsetFinder.DummyCharset
A dummy charset to detect a default hit. |
Constructor Summary | |
---|---|
GuessEncodingCharsetFinder()
|
Method Summary | |
---|---|
protected java.nio.charset.Charset |
detectCharsetImpl(byte[] buffer)
Worker method for implementations to override. |
Methods inherited from class org.alfresco.encoding.AbstractCharactersetFinder |
---|
detectCharset, detectCharset, getBufferSize, setBufferSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuessEncodingCharsetFinder()
Method Detail |
---|
protected java.nio.charset.Charset detectCharsetImpl(byte[] buffer) throws java.lang.Exception
AbstractCharactersetFinder
The interface contract is that the data buffer must not be altered in any way.
detectCharsetImpl
in class AbstractCharactersetFinder
buffer
- 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 not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |