com.notuvy.file
Class FileContent
java.lang.Object
com.notuvy.file.FileContent
public class FileContent
- extends Object
A utility to save string content to a file, and to extract the string content from a file.
- Author:
- murali
Field Summary |
protected static org.apache.log4j.Logger |
LOG
|
LOG
protected static final org.apache.log4j.Logger LOG
FileContent
public FileContent(File pParent,
String pName)
FileContent
public FileContent(File pDestination)
getDestination
public File getDestination()
fileExists
public boolean fileExists()
save
public boolean save(Object pContent)
readString
public String readString()
transferTo
public boolean transferTo(Writer pWriter)
throws IOException
- Throws:
IOException
readLines
public boolean readLines(FileContent.LineHandler pHandler)
save
public boolean save(FileContent.WriterHandler pHandler)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013. All Rights Reserved.