Class InputStreamEntry.FileStreamEntry
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.jboss.as.controller.client.impl.InputStreamEntry.FileStreamEntry
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,InputStreamEntry
- Enclosing interface:
- InputStreamEntry
public static class InputStreamEntry.FileStreamEntry extends FilterInputStream implements InputStreamEntry
-
-
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 class java.io.FilterInputStream
in
-
Fields inherited from interface org.jboss.as.controller.client.impl.InputStreamEntry
EMPTY
-
-
Constructor Summary
Constructors Constructor Description FileStreamEntry(File file)
FileStreamEntry(Path file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyStream(DataOutput output)
Copy the stream.int
initialize()
Initialize the input stream entry.-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
FileStreamEntry
public FileStreamEntry(File file) throws IOException
- Throws:
IOException
-
FileStreamEntry
public FileStreamEntry(Path file) throws IOException
- Throws:
IOException
-
-
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
-
-