public interface LanguageIdentificationService
Modifier and Type | Method and Description |
---|---|
String[] |
getSupportedEncodings() |
String[] |
getSupportedLanguages() |
String |
identify(String text,
String originalEncoding) |
LanguageAndEncoding |
identifyLanguageAndEncoding(byte[] textBytes) |
LanguageAndEncoding identifyLanguageAndEncoding(byte[] textBytes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- Either text or language is null or else an empty string.language does not comply with RFC3066ProcessFailedException
- Response search failed due to some causeNoAccessPermissionException
- The user executing the call lacks execution privilegesNoValidEndpointsException
- There is no valid endpointServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- Service not activeServiceNotFoundException
- The specified service was not foundString identify(String text, String originalEncoding) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- Either text or language is null or else an empty string.language does not comply with RFC3066ProcessFailedException
- Response search failed due to some causeNoAccessPermissionException
- The user executing the call lacks execution privilegesNoValidEndpointsException
- There is no valid endpointServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- Service not activeServiceNotFoundException
- The specified service was not foundString[] getSupportedLanguages() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- Either text or language is null or else an empty string.language does not comply with RFC3066ProcessFailedException
- Response search failed due to some causeNoAccessPermissionException
- The user executing the call lacks execution privilegesNoValidEndpointsException
- There is no valid endpointServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- Service not activeServiceNotFoundException
- The specified service was not foundString[] getSupportedEncodings() throws AccessLimitExceededException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
AccessLimitExceededException
- Violated an access restrictionInvalidParameterException
- Either text or language is null or else an empty string.language does not comply with RFC3066ProcessFailedException
- Response search failed due to some causeNoAccessPermissionException
- The user executing the call lacks execution privilegesNoValidEndpointsException
- There is no valid endpointServerBusyException
- The server is loaded and cannot process it.ServiceNotActiveException
- Service not activeServiceNotFoundException
- The specified service was not found