Package org.citydb.citygml.deleter.util
Class DeleteListParser
- java.lang.Object
-
- org.citydb.citygml.deleter.util.DeleteListParser
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class DeleteListParser extends java.lang.Object implements java.lang.AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteListParser.IdType
-
Constructor Summary
Constructors Constructor Description DeleteListParser(java.nio.file.Path file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getCurrentLineNumber()
java.nio.file.Path
getFile()
DeleteListParser.IdType
getIdType()
boolean
hasNext()
java.lang.String
nextId()
java.util.Iterator<Query>
queryIterator(SchemaMapping schemaMapping, AbstractDatabaseAdapter databaseAdapter)
DeleteListParser
withCommentStart(java.lang.String commentStart)
DeleteListParser
withDelimiter(java.lang.String delimiter)
DeleteListParser
withEncoding(java.nio.charset.Charset encoding)
DeleteListParser
withHeader(boolean header)
DeleteListParser
withIdColumn(int index)
DeleteListParser
withIdColumn(java.lang.String name)
DeleteListParser
withIdType(DeleteListParser.IdType idType)
DeleteListParser
withQuoteChar(char quoteChar)
-
-
-
Method Detail
-
getFile
public java.nio.file.Path getFile()
-
getCurrentLineNumber
public long getCurrentLineNumber()
-
withIdColumn
public DeleteListParser withIdColumn(java.lang.String name)
-
withIdColumn
public DeleteListParser withIdColumn(int index)
-
withIdType
public DeleteListParser withIdType(DeleteListParser.IdType idType)
-
getIdType
public DeleteListParser.IdType getIdType()
-
withDelimiter
public DeleteListParser withDelimiter(java.lang.String delimiter)
-
withCommentStart
public DeleteListParser withCommentStart(java.lang.String commentStart)
-
withQuoteChar
public DeleteListParser withQuoteChar(char quoteChar)
-
withHeader
public DeleteListParser withHeader(boolean header)
-
withEncoding
public DeleteListParser withEncoding(java.nio.charset.Charset encoding)
-
hasNext
public boolean hasNext() throws java.io.IOException
- Throws:
java.io.IOException
-
nextId
public java.lang.String nextId() throws java.io.IOException
- Throws:
java.io.IOException
-
queryIterator
public java.util.Iterator<Query> queryIterator(SchemaMapping schemaMapping, AbstractDatabaseAdapter databaseAdapter)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
-