public static class NamedStreamable.DirWrapper extends java.lang.Object implements NamedStreamable
NamedStreamable.ByteArrayWrapper, NamedStreamable.DirWrapper, NamedStreamable.FileWrapper, NamedStreamable.InputStreamWrapper
Constructor and Description |
---|
DirWrapper(java.lang.String name,
java.util.List<NamedStreamable> children) |
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 DirWrapper(java.lang.String name, java.util.List<NamedStreamable> children)
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface NamedStreamable
java.io.IOException
public java.util.Optional<java.lang.String> getName()
getName
in interface NamedStreamable
public java.util.List<NamedStreamable> getChildren()
getChildren
in interface NamedStreamable
public boolean isDirectory()
isDirectory
in interface NamedStreamable