com.elasticpath.persistence.impl
Class PrintWriterImpl

java.lang.Object
  extended by com.elasticpath.persistence.impl.PrintWriterImpl
All Implemented Interfaces:
PrintWriter

public class PrintWriterImpl
extends java.lang.Object
implements PrintWriter

This is a default implementation of PrintWriter. It's just a wrapper of java.io.PrintWriter.


Constructor Summary
PrintWriterImpl()
           
 
Method Summary
 void close()
          Close the file.
 void open(java.lang.String fileName)
          Open a file to write.
 void println(java.lang.String string)
          Writes the given string as a line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintWriterImpl

public PrintWriterImpl()
Method Detail

close

public void close()
           throws EpPersistenceException
Close the file.

Specified by:
close in interface PrintWriter
Throws:
EpPersistenceException - in case of any IO error happens

open

public void open(java.lang.String fileName)
          throws EpPersistenceException
Open a file to write.

Specified by:
open in interface PrintWriter
Parameters:
fileName - the file name
Throws:
EpPersistenceException - if any error happens

println

public void println(java.lang.String string)
             throws EpPersistenceException
Writes the given string as a line.

Specified by:
println in interface PrintWriter
Parameters:
string - the string to write
Throws:
EpPersistenceException - in case any error happens