| Constructor and Description |
|---|
OSMInputFile(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
complete() |
ReaderElement |
getNext() |
int |
getUnprocessedElements() |
boolean |
isEOF() |
OSMInputFile |
open() |
void |
process(ReaderElement item) |
OSMInputFile |
setSkipOptions(SkipOptions skipOptions)
Use this to prevent the creation of OSM nodes, ways and/or relations to speed up the file reading process.
|
OSMInputFile |
setWorkerThreads(int threads)
Currently only for pbf format.
|
public OSMInputFile(File file) throws IOException
IOExceptionpublic OSMInputFile open() throws XMLStreamException
XMLStreamExceptionpublic OSMInputFile setWorkerThreads(int threads)
public OSMInputFile setSkipOptions(SkipOptions skipOptions)
public ReaderElement getNext() throws XMLStreamException
getNext in interface OSMInputXMLStreamExceptionpublic boolean isEOF()
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void process(ReaderElement item)
public int getUnprocessedElements()
getUnprocessedElements in interface OSMInputCopyright © 2012–2023. All rights reserved.