public class OsmBuffer extends Object implements OsmOutputStream, OsmIterator
Constructor and Description |
---|
OsmBuffer(int bufferSize,
int maxNumberOfBuffers) |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
OsmBounds |
getBounds() |
int |
getSize() |
boolean |
hasBounds() |
boolean |
hasNext() |
Iterator<EntityContainer> |
iterator() |
EntityContainer |
next() |
void |
remove() |
void |
setInvalid() |
void |
write(OsmBounds bounds) |
void |
write(OsmNode node) |
void |
write(OsmRelation relation) |
void |
write(OsmWay way) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
forEachRemaining
public int getSize()
public void setInvalid()
public void write(OsmBounds bounds) throws IOException
write
in interface OsmOutputStream
IOException
public void write(OsmNode node) throws IOException
write
in interface OsmOutputStream
IOException
public void write(OsmWay way) throws IOException
write
in interface OsmOutputStream
IOException
public void write(OsmRelation relation) throws IOException
write
in interface OsmOutputStream
IOException
public void complete() throws IOException
complete
in interface OsmOutputStream
IOException
public Iterator<EntityContainer> iterator()
iterator
in interface Iterable<EntityContainer>
public boolean hasNext()
hasNext
in interface Iterator<EntityContainer>
public EntityContainer next()
next
in interface Iterator<EntityContainer>
public void remove()
remove
in interface Iterator<EntityContainer>
public boolean hasBounds()
hasBounds
in interface OsmIterator
public OsmBounds getBounds()
getBounds
in interface OsmIterator