public class StringFileWriter extends AbstractWriter
| Constructor and Description |
|---|
StringFileWriter(FileTarget target)
Returns a new writer for a file target.
|
StringFileWriter(String fileName)
Returns a new writer for a file name, creating a file target automatically.
|
| Modifier and Type | Method and Description |
|---|---|
FileTarget |
getTarget()
Returns the target set for the writer, that is where the writer writes information to.
|
boolean |
write(Object content)
Writes information to a target and returns a specific object.
|
getWriteErrorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateTargetpublic StringFileWriter(FileTarget target)
target - the file target to be usedpublic StringFileWriter(String fileName)
fileName - a file name with all path elements (if required).
The file name cannot be located (see FileTarget.FileTarget(String) the writer is not valid.public boolean write(Object content)
InfoWriterInfoWriter.getWriteErrors() to retrieve them.content - the content to be writtenpublic FileTarget getTarget()
InfoWriterCopyright © 2010–2017. All rights reserved.