public interface Detector
Modifier and Type | Method and Description |
---|---|
Detection |
detect(byte[] input,
int offset,
int length,
Hint hint)
Detects language and encoding of the supplied byte array, possibly using a language/encoding hint.
|
Detection |
detect(ByteBuffer input,
Hint hint)
Detects language and encoding of the supplied ByteBuffer, possibly using a language/encoding hint.
|
Detection |
detect(String input,
Hint hint)
Detects language of the supplied String, possibly using a language hint.
|
Detection detect(byte[] input, int offset, int length, Hint hint)
input
- the buffer that is to be inspectedoffset
- the offset to detect fromlength
- the size to detect fromhint
- a hint to the detector, or null for no hintDetectionException
- if detection failsDetection detect(ByteBuffer input, Hint hint)
input
- the buffer that is to be inspected, from its current position to its limithint
- a hint to the detector, or null for no hintDetectionException
- if detection failsDetection detect(String input, Hint hint)
input
- the string that is to be inspectedhint
- a hint to the detector, or null for no hintDetectionException
- if detection failsCopyright © 2018. All rights reserved.