public class SequenceResource extends AbstractResource
Constructor and Description |
---|
SequenceResource(Iterable<Resource> resources)
Creates a new SequenceResource as the logical concatenation of the
given resources.
|
SequenceResource(Resource... resources)
Creates a new SequenceResource as the logical concatenation of the
given resources.
|
SequenceResource(String mimetype,
Iterable<Resource> resources)
Creates a new SequenceResource as the logical concatenation of the
given resources.
|
SequenceResource(String mimetype,
Resource... resources)
Creates a new SequenceResource as the logical concatenation of the
given resources.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
asStream()
Returns an InputStream which reads the contents of this resource,
starting with the first byte.
|
getLastModified, getMimeType
public SequenceResource(String mimetype, Iterable<Resource> resources)
mimetype
- The mimetype of the resource.resources
- The resources to concatenate within the InputStream of this
SequenceResource.public SequenceResource(Iterable<Resource> resources)
resources
- The resources to concatenate within the InputStream of this
SequenceResource.public SequenceResource(String mimetype, Resource... resources)
mimetype
- The mimetype of the resource.resources
- The resources to concatenate within the InputStream of this
SequenceResource.public SequenceResource(Resource... resources)
resources
- The resources to concatenate within the InputStream of this
SequenceResource.public InputStream asStream()
Resource
Copyright © 2016. All rights reserved.