public class RegionReader
extends java.lang.Object
ProtectedRegionReplacer
.
Copyright (C) 2012-2015 JIOWA Business Solutions GmbH, Bettinastr. 30 , D-60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Class and Description |
---|---|
protected static class |
RegionReader.RegionEnum |
Modifier and Type | Field and Description |
---|---|
protected RegionNameExtractor |
extractor |
protected java.lang.String |
filename |
protected RegionReader.RegionEnum |
mode
state for region reading:
|
protected TextRegionNotation |
notation |
protected LineReader |
reader |
Constructor and Description |
---|
RegionReader(java.lang.String filename,
TextRegionNotation textRegionNotation,
java.lang.String source) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsProtectedRegionEnd(java.lang.String line) |
protected boolean |
containsProtectedRegionStart(java.lang.String line) |
protected boolean |
isProtectedRegionEnd(java.lang.String line) |
protected boolean |
isProtectedRegionStart(java.lang.String line) |
TextRegion |
read()
Reads a single text region from the string.
|
java.util.List<TextRegion> |
readAll()
Returns all regions at once in a list.
|
protected TextRegion |
readNextRegion() |
protected ProtectedRegion |
readProtectedRegion()
Reads a protected region and throws an exception if it could not read correctly.
|
protected UnprotectedRegion |
readUnprotectedRegion() |
protected java.lang.String filename
protected LineReader reader
protected TextRegionNotation notation
protected RegionReader.RegionEnum mode
protected RegionNameExtractor extractor
public RegionReader(java.lang.String filename, TextRegionNotation textRegionNotation, java.lang.String source)
public TextRegion read() throws TextRegionException
TextRegionException
public java.util.List<TextRegion> readAll() throws TextRegionException
TextRegionException
protected TextRegion readNextRegion() throws TextRegionException
TextRegionException
protected UnprotectedRegion readUnprotectedRegion() throws TextRegionException
TextRegionException
protected ProtectedRegion readProtectedRegion() throws ProtectedRegionException
ProtectedRegionException
protected boolean isProtectedRegionStart(java.lang.String line) throws ProtectedRegionException
ProtectedRegionException
protected boolean isProtectedRegionEnd(java.lang.String line) throws ProtectedRegionException
ProtectedRegionException
protected boolean containsProtectedRegionStart(java.lang.String line)
protected boolean containsProtectedRegionEnd(java.lang.String line)