jxtray.io
Class JarWriterStrategy

java.lang.Object
  extended byjxtray.io.WriterStrategy
      extended byjxtray.io.JarWriterStrategy

public class JarWriterStrategy
extends WriterStrategy

Author:
Jean-Yves Beaujean This class allows to write a String in an jar file.

Field Summary
 
Fields inherited from class jxtray.io.WriterStrategy
_fileName
 
Constructor Summary
JarWriterStrategy(java.lang.String filename)
           
 
Method Summary
 void close()
           
 java.lang.String getName()
          Return the writer name
 void open()
           
 void write(java.lang.String data)
          Write the data data in file file It use JarOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarWriterStrategy

public JarWriterStrategy(java.lang.String filename)
Method Detail

open

public void open()
          throws java.io.IOException
Specified by:
open in class WriterStrategy
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in class WriterStrategy
Throws:
java.io.IOException

getName

public java.lang.String getName()
Return the writer name

Overrides:
getName in class WriterStrategy
Returns:
String

write

public void write(java.lang.String data)
           throws java.io.IOException
Write the data data in file file It use JarOutputStream

Specified by:
write in class WriterStrategy
Throws:
java.io.IOException