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