Package org.apache.xmlbeans.impl.util
Class FilerImpl
- java.lang.Object
-
- org.apache.xmlbeans.impl.util.FilerImpl
-
-
Constructor Summary
Constructors Constructor Description FilerImpl(java.io.File classdir, java.io.File srcdir, Repackager repackager, boolean verbose, boolean incrSrcGen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
createBinaryFile(java.lang.String typename)
Creates a new schema binary file (.xsb) and returns a stream for writing to it.java.io.Writer
createSourceFile(java.lang.String typename)
Creates a new binding source file (.java) and returns a writer for it.Repackager
getRepackager()
java.util.List<java.io.File>
getSourceFiles()
-
-
-
Constructor Detail
-
FilerImpl
public FilerImpl(java.io.File classdir, java.io.File srcdir, Repackager repackager, boolean verbose, boolean incrSrcGen)
-
-
Method Detail
-
createBinaryFile
public java.io.OutputStream createBinaryFile(java.lang.String typename) throws java.io.IOException
Creates a new schema binary file (.xsb) and returns a stream for writing to it.- Specified by:
createBinaryFile
in interfaceFiler
- Parameters:
typename
- fully qualified type name- Returns:
- a stream to write the type to
- Throws:
java.io.IOException
- when the file can't be created
-
createSourceFile
public java.io.Writer createSourceFile(java.lang.String typename) throws java.io.IOException
Creates a new binding source file (.java) and returns a writer for it.- Specified by:
createSourceFile
in interfaceFiler
- Parameters:
typename
- fully qualified type name- Returns:
- a stream to write the type to
- Throws:
java.io.IOException
- when the file can't be created
-
getSourceFiles
public java.util.List<java.io.File> getSourceFiles()
-
getRepackager
public Repackager getRepackager()
-
-