org.idoox.wasp.tools
Interface CompilerIO

All Known Implementing Classes:
FileCompilerIO

public interface CompilerIO

CompilerIO interface specifies an abstraction over file system. Using this interface, one may control e.g. where the output from the WSDL2Java tool is stored. This interface is used also in the rest of WSO2 SOA Enablement Server tools.
You can also use the basic implementation of this interface - the class FileCompilerIO.

Since:
4.0
Component:
Core

Method Summary
 java.io.PrintWriter getWriter(java.lang.String relativePath)
          Returns writer for a given relative path.
 

Method Detail

getWriter

public java.io.PrintWriter getWriter(java.lang.String relativePath)
                              throws java.io.IOException
Returns writer for a given relative path. If the path contains non-existing directories, they are created.

Parameters:
relativePath - the file to be created
Returns:
the writer for the file
Throws:
java.io.IOException - in case something gets wrong