|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
java.io.StringWriter
nl.tudelft.tbm.eeni.owl2java.formatter.CodeFormattingWriter
public class CodeFormattingWriter
Stream writer that formats source code
| Constructor Summary | |
|---|---|
CodeFormattingWriter(Writer destination)
Creates a new code-formatting wrapper with default formatter settings |
|
CodeFormattingWriter(Writer destination,
CodeFormatter formatter)
Creates a new code-formatting wrapper, reusing an existing code formatter instance |
|
CodeFormattingWriter(Writer destination,
Properties formatterSettings)
Creates a new code-formatting wrapper with specified formatter settings; if formatterOptions is null, use default formatter settings |
|
| Method Summary | |
|---|---|
void |
close()
Formats the contents of the string buffer, then flushes |
void |
flush()
Flush is ignored by formattedWriter |
| Methods inherited from class java.io.StringWriter |
|---|
append, append, append, getBuffer, toString, write, write, write, write |
| Methods inherited from class java.io.Writer |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CodeFormattingWriter(Writer destination)
public CodeFormattingWriter(Writer destination,
Properties formatterSettings)
public CodeFormattingWriter(Writer destination,
CodeFormatter formatter)
| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class StringWriterIOExceptionWriter.close()public void flush()
flush in interface Flushableflush in class StringWriterWriter.flush()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||