Package fr.gouv.vitam.workspace.client
Class WorkspaceBufferingInputStream
java.lang.Object
java.io.InputStream
fr.gouv.vitam.workspace.client.WorkspaceBufferingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionWorkspaceBufferingInputStream
(WorkspaceClientFactory workspaceClientFactory, String containerName, String objectName, int maxOnDiskBufferSize, int maxInMemoryBufferSize, File tmpDirectory) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
WorkspaceBufferingInputStream
public WorkspaceBufferingInputStream(WorkspaceClientFactory workspaceClientFactory, String containerName, String objectName, int maxOnDiskBufferSize, int maxInMemoryBufferSize, File tmpDirectory) throws IOException, ContentAddressableStorageNotFoundException
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-