Class InputStreamEntry.InMemoryEntry
- java.lang.Object
-
- org.jboss.as.controller.client.impl.InputStreamEntry.InMemoryEntry
-
- All Implemented Interfaces:
Closeable,AutoCloseable,InputStreamEntry
- Enclosing interface:
- InputStreamEntry
public static class InputStreamEntry.InMemoryEntry extends Object implements InputStreamEntry
Copy the data in-memory.
-
-
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 Constructor Description InMemoryEntry(InputStream original, boolean autoClose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcopyStream(DataOutput output)Copy the stream.intinitialize()Initialize the input stream entry.
-
-
-
Constructor Detail
-
InMemoryEntry
public InMemoryEntry(InputStream original, boolean autoClose)
-
-
Method Detail
-
initialize
public int initialize() throws IOExceptionDescription copied from interface:InputStreamEntryInitialize the input stream entry.- Specified by:
initializein interfaceInputStreamEntry- Returns:
- the size of the underlying stream
- Throws:
IOException
-
copyStream
public void copyStream(DataOutput output) throws IOException
Description copied from interface:InputStreamEntryCopy the stream.- Specified by:
copyStreamin interfaceInputStreamEntry- Parameters:
output- the data output- Throws:
IOException- for any error
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-