public class SourceGenerator
extends java.lang.Object
Constructor and Description |
---|
SourceGenerator(java.io.File filepath,
java.lang.String author,
java.lang.String version)
Creates a source generator
|
Modifier and Type | Method and Description |
---|---|
void |
bl() |
void |
close()
close the file
|
void |
w(java.lang.String content)
write the content without a carriage return at the end
|
void |
wl(java.lang.String content)
writes the content and have a carriage return
|
void |
writeHeader(java.lang.String author,
java.lang.String version)
writes the header of auto-generated file
|
public SourceGenerator(java.io.File filepath, java.lang.String author, java.lang.String version) throws java.io.IOException
filepath
- file pathauthor
- author of the moduleversion
- version of the modulejava.io.IOException
- if any exception is encountered while writing the filepublic void wl(java.lang.String content) throws java.io.IOException
content
- the content to writejava.io.IOException
- if any exception is encountered while writing the filepublic void bl() throws java.io.IOException
java.io.IOException
- if any exception is encountered while writing the filepublic void w(java.lang.String content) throws java.io.IOException
content
- content to writejava.io.IOException
- if any exception is encountered while writing the filepublic void close() throws java.io.IOException
java.io.IOException
- if any exception is encountered while writing the filepublic void writeHeader(java.lang.String author, java.lang.String version) throws java.io.IOException
author
- author of the moduleversion
- version of the modulejava.io.IOException
- if any exception is encountered while writing the file