public interface Filer
Modifier and Type | Method and Description |
---|---|
OutputStream |
createBinaryFile(String typename)
Creates a new schema binary file (.xsb) and returns a stream for writing to it.
|
default Writer |
createSourceFile(String typename)
Creates a new binding source file (.java) and returns a writer for it.
|
Writer |
createSourceFile(String typename,
String sourceCodeEncoding)
Creates a new binding source file (.java) and returns a writer for it.
|
OutputStream createBinaryFile(String typename) throws IOException
typename
- fully qualified type nameIOException
- when the file can't be createddefault Writer createSourceFile(String typename) throws IOException
typename
- fully qualified type nameIOException
- when the file can't be createdWriter createSourceFile(String typename, String sourceCodeEncoding) throws IOException
typename
- fully qualified type namesourceCodeEncoding
- an optional encoding used when compiling source code (can be null
)IOException
- when the file can't be created