public final class FolderContainer extends Container
Provides a container for the directory.
Container.Entity, Container.EntityParameter
Constructor and Description |
---|
FolderContainer(String directory)
Initializes a new instance of the
FolderContainer class. |
Modifier and Type | Method and Description |
---|---|
protected List<Container.Entity> |
loadEntities()
Returns a collection of the container's entities.
|
protected InputStream |
openStream(Container.Entity entity)
Returns the stream with the content of the
entity . |
close, dispose, dispose, getContainerStream, getEncoding, getEntities, getMediaType, load, openEntityStream, setEncoding, setMediaType
public FolderContainer(String directory)
Initializes a new instance of the FolderContainer
class.
directory
- The directory for reading.ArgumentNullException
- directory
is null.protected List<Container.Entity> loadEntities()
Returns a collection of the container's entities.
loadEntities
in class Container
protected InputStream openStream(Container.Entity entity)
Returns the stream with the content of the entity
.
openStream
in class Container
entity
- The entity.java.io.InputStream
with the content of the entity.