com.googlecode.jpattern.service.log.file
Class LogFileWriter

java.lang.Object
  extended by com.googlecode.jpattern.service.log.file.LogFileWriter
All Implemented Interfaces:
ILogFileWriter, Serializable

public class LogFileWriter
extends Object
implements ILogFileWriter

Author:
Francesco Cina' 10/apr/2010
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.googlecode.jpattern.service.log.file.ILogFileWriter
BYTE, KILOBYTE, MEGABYTE
 
Constructor Summary
LogFileWriter(String filepath)
           
 
Method Summary
 void close()
           
 boolean delete()
           
 boolean exist()
           
 long getSize()
           
 boolean rename(String filename)
           
 void write(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFileWriter

public LogFileWriter(String filepath)
Method Detail

write

public void write(String text)
Specified by:
write in interface ILogFileWriter

getSize

public long getSize()
Specified by:
getSize in interface ILogFileWriter

rename

public boolean rename(String filename)
Specified by:
rename in interface ILogFileWriter

delete

public boolean delete()
Specified by:
delete in interface ILogFileWriter

close

public void close()
Specified by:
close in interface ILogFileWriter

exist

public boolean exist()
Specified by:
exist in interface ILogFileWriter


Copyright © 2011. All Rights Reserved.