public class ProtectedRegionReplacer extends RegionReplacer
Copyright (C) 2012-2015 JIOWA Business Solutions GmbH, Bettinastr. 30 , 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 | Field and Description |
---|---|
protected TextRegionNotation |
notation |
Constructor and Description |
---|
ProtectedRegionReplacer(TextRegionNotation textRegionNotation) |
Modifier and Type | Method and Description |
---|---|
protected ProtectedRegionMap |
findProtectedRegions(java.lang.String filename,
java.lang.String source) |
java.lang.String |
replace(TextFileContext oldTextFile,
java.lang.String newSource)
Replaces the text content of oldTextFile with newSource and leaves protected regions unchanged.
|
protected TextRegionNotation notation
public ProtectedRegionReplacer(TextRegionNotation textRegionNotation)
public java.lang.String replace(TextFileContext oldTextFile, java.lang.String newSource) throws ProtectedRegionException
RegionReplacer
replace
in class RegionReplacer
oldTextFile
- text file context with a tuple of filename and its text content.newSource
- the new source textProtectedRegionException
- if an errornous protected region occursprotected ProtectedRegionMap findProtectedRegions(java.lang.String filename, java.lang.String source) throws ProtectedRegionException
ProtectedRegionException