Class FilerImpl

  • All Implemented Interfaces:
    Filer

    public class FilerImpl
    extends Object
    implements Filer
    This implementation of Filer writes to disk.
    • Constructor Detail

      • FilerImpl

        public FilerImpl​(File classdir,
                         File srcdir,
                         org.apache.xmlbeans.impl.repackage.Repackager repackager,
                         boolean verbose,
                         boolean incrSrcGen)
    • Method Detail

      • createBinaryFile

        public OutputStream createBinaryFile​(String typename)
                                      throws IOException
        Creates a new schema binary file (.xsb) and returns a stream for writing to it.
        Specified by:
        createBinaryFile in interface Filer
        Parameters:
        typename - fully qualified type name
        Returns:
        a stream to write the type to
        Throws:
        IOException
      • createSourceFile

        public Writer createSourceFile​(String typename)
                                throws IOException
        Creates a new binding source file (.java) and returns a writer for it.
        Specified by:
        createSourceFile in interface Filer
        Parameters:
        typename - fully qualified type name
        Returns:
        a stream to write the type to
        Throws:
        IOException
      • getSourceFiles

        public List getSourceFiles()
      • getRepackager

        public org.apache.xmlbeans.impl.repackage.Repackager getRepackager()