org.annolab.tt4j
Interface ExecutableResolver

All Known Implementing Classes:
DefaultExecutableResolver

public interface ExecutableResolver

Resolve the location of the TreeTagger executable.

Author:
Richard Eckart de Castilho

Method Summary
 void destroy()
          Destroy transient resources for the executable file.
 String getExecutable()
          Get the executable file.
 void setPlatformDetector(PlatformDetector aPlatform)
          Set platform information.
 

Method Detail

setPlatformDetector

void setPlatformDetector(PlatformDetector aPlatform)
Set platform information.

Parameters:
aPlatform - the platform information.

destroy

void destroy()
Destroy transient resources for the executable file. E.g. if the file was extracted to a temporary location from an archive/classpath, it can be deleted by this method.


getExecutable

String getExecutable()
                     throws IOException
Get the executable file. If necessary the file can be provided in a temporary location by this method.

Returns:
the executable file.
Throws:
IOException - if the file cannot be located/provided.


Copyright © 2011. All Rights Reserved.