Class PipesServer
java.lang.Object
org.apache.tika.pipes.core.server.PipesServer
- All Implemented Interfaces:
AutoCloseable
This server is forked from the PipesClient. This class isolates
parsing from the client to protect the primary JVM.
When configuring logging for this class, make absolutely certain not to write to STDOUT. This class uses STDOUT to communicate with the PipesClient.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPipesServer(String pipesClientId, TikaLoader tikaLoader, PipesConfig pipesConfig, Socket socket, DataInputStream in, DataOutputStream out, MetadataFilter metadataFilter, ContentHandlerFactory contentHandlerFactory, MetadataWriteLimiterFactory metadataWriteLimiterFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidstatic PipesServerstatic voidvoidmainLoop()
-
Field Details
-
AUTH_TOKEN_LENGTH_BYTES
public static final int AUTH_TOKEN_LENGTH_BYTES- See Also:
-
-
Constructor Details
-
PipesServer
public PipesServer(String pipesClientId, TikaLoader tikaLoader, PipesConfig pipesConfig, Socket socket, DataInputStream in, DataOutputStream out, MetadataFilter metadataFilter, ContentHandlerFactory contentHandlerFactory, MetadataWriteLimiterFactory metadataWriteLimiterFactory) throws TikaConfigException, IOException - Throws:
TikaConfigExceptionIOException
-
-
Method Details
-
load
- Throws:
Exception
-
main
- Throws:
Exception
-
mainLoop
public void mainLoop() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
initializeResources
- Throws:
TikaExceptionIOExceptionSAXException
-