public class SourceFileUpdater
extends java.lang.Object
Copyright (C) 2012-2016 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 java.io.File |
file |
Constructor and Description |
---|
SourceFileUpdater(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
update(java.lang.String newSource)
Updates the source file (and keeps the protected regions intact) and returns the updated source as string.
|
public java.lang.String update(java.lang.String newSource) throws ProtectedRegionException, java.io.IOException
newSource
- the new text for the source file *ProtectedRegionException
- if the target file or new source has invalid protected regionsjava.io.IOException