Class InputStreamEntry.CachingStreamEntry
java.lang.Object
org.jboss.as.controller.client.impl.InputStreamEntry.CachingStreamEntry
- All Implemented Interfaces:
Closeable,AutoCloseable,InputStreamEntry
- Enclosing interface:
- InputStreamEntry
Cache the data on disk.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.client.impl.InputStreamEntry
InputStreamEntry.CachingStreamEntry, InputStreamEntry.FileStreamEntry, InputStreamEntry.InMemoryEntry -
Field Summary
Fields inherited from interface org.jboss.as.controller.client.impl.InputStreamEntry
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcopyStream(DataOutput output) Copy the stream.intInitialize the input stream entry.
-
Constructor Details
-
CachingStreamEntry
-
-
Method Details
-
initialize
Description copied from interface:InputStreamEntryInitialize the input stream entry.- Specified by:
initializein interfaceInputStreamEntry- Returns:
- the size of the underlying stream
- Throws:
IOException
-
copyStream
Description copied from interface:InputStreamEntryCopy the stream.- Specified by:
copyStreamin interfaceInputStreamEntry- Parameters:
output- the data output- Throws:
IOException- for any error
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-