public abstract class AbstractLanguageIdentificationService extends AbstractLanguageService implements LanguageIdentificationService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| コンストラクタと説明 |
|---|
AbstractLanguageIdentificationService() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract String |
doIdentify(String text,
String originalEncoding) |
protected abstract LanguageAndEncoding |
doIdentifyLanguageAndEncoding(byte[] textBytes) |
String[] |
getSupportedEncodings() |
String |
identify(String text,
String originalEncoding) |
LanguageAndEncoding |
identifyLanguageAndEncoding(byte[] textBytes) |
protected void |
setSupportedEncodings(String[] supportedEncodings) |
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguagesacquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedLanguagespublic LanguageAndEncoding identifyLanguageAndEncoding(byte[] textBytes) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
public String identify(String text, String originalEncoding) throws AccessLimitExceededException, InvalidParameterException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
public String[] getSupportedEncodings() throws NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException
protected void setSupportedEncodings(String[] supportedEncodings)
protected abstract LanguageAndEncoding doIdentifyLanguageAndEncoding(byte[] textBytes) throws InvalidParameterException, ProcessFailedException
protected abstract String doIdentify(String text, String originalEncoding) throws InvalidParameterException, ProcessFailedException
Copyright © 2021. All rights reserved.