public class LayersIndex extends Object
Constructor and Description |
---|
LayersIndex(Iterable<Layer> layers)
Create a new
LayersIndex backed by the given layers. |
Modifier and Type | Method and Description |
---|---|
void |
add(Layer layer,
String name)
Add an item to the index.
|
void |
writeTo(OutputStream out)
Write the layer index to an output stream.
|
public LayersIndex(Iterable<Layer> layers)
LayersIndex
backed by the given layers.layers
- the layers in the indexpublic void add(Layer layer, String name)
layer
- the layer of the itemname
- the name of the itempublic void writeTo(OutputStream out) throws IOException
out
- the destination streamIOException
- on IO error