public static class NamedStreamable.FileWrapper extends java.lang.Object implements NamedStreamable
NamedStreamable.ByteArrayWrapper, NamedStreamable.DirWrapper, NamedStreamable.FileWrapper, NamedStreamable.InputStreamWrapper
Constructor and Description |
---|
FileWrapper(java.io.File source) |
Modifier and Type | Method and Description |
---|---|
java.util.List<NamedStreamable> |
getChildren() |
java.io.InputStream |
getInputStream() |
java.util.Optional<java.lang.String> |
getName() |
boolean |
isDirectory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContents
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface NamedStreamable
java.io.IOException
public boolean isDirectory()
isDirectory
in interface NamedStreamable
public java.util.List<NamedStreamable> getChildren()
getChildren
in interface NamedStreamable
public java.util.Optional<java.lang.String> getName()
getName
in interface NamedStreamable