Top Fields Constructors Methods
com.mchange.v2.io

public Class IndentedWriter

extends FilterWriter
Class Inheritance
Known Direct Subclasses
com.mchange.v2.codegen.IndentedWriter
Imports
java.io.*

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv static final String
pack-priv int
pack-priv String
Inherited from java.io.FilterWriter:
out

Constructor Summary

AccessConstructor and Description
public
IndentedWriter(Writer out, String indentSpacing)

public

Method Summary

Modifier and TypeMethod and Description
public void
private boolean
isEol(char c)

private void
public void
public void
println(boolean x)

public void
println(byte x)

public void
println(char x)

public void
println(short x)

public void
println(int x)

public void
println(long x)

public void
println(float x)

public void
println(double x)

public void
public void
public void
public void
write(int
int specifying a character to be written
c
)

Overrides java.io.FilterWriter.write.

Writes a single character.

public void
write(char[]
Buffer of characters to be written
chars
,
int
Offset from which to start reading characters
off
,
int
Number of characters to be written
len
)

Overrides java.io.FilterWriter.write.

Writes a portion of an array of characters.

public void
write(String
String to be written
s
,
int
Offset from which to start reading characters
off
,
int
Number of characters to be written
len
)

Overrides java.io.FilterWriter.write.

Writes a portion of a string.

Inherited from java.io.FilterWriter:
closeflush

Field Detail

at_line_startback to summary
pack-priv boolean at_line_start
EOLback to summary
pack-priv static final String EOL
indent_levelback to summary
pack-priv int indent_level
indentSpacingback to summary
pack-priv String indentSpacing

Constructor Detail

IndentedWriterback to summary
public IndentedWriter(Writer out, String indentSpacing)
IndentedWriterback to summary
public IndentedWriter(Writer out)

Method Detail

downIndentback to summary
public void downIndent()
isEolback to summary
private boolean isEol(char c)
printIndentback to summary
private void printIndent() throws IOException
printlnback to summary
public void println(String s) throws IOException
printlnback to summary
public void println(boolean x) throws IOException
printlnback to summary
public void println(byte x) throws IOException
printlnback to summary
public void println(char x) throws IOException
printlnback to summary
public void println(short x) throws IOException
printlnback to summary
public void println(int x) throws IOException
printlnback to summary
public void println(long x) throws IOException
printlnback to summary
public void println(float x) throws IOException
printlnback to summary
public void println(double x) throws IOException
printlnback to summary
public void println(Object x) throws IOException
printlnback to summary
public void println() throws IOException
upIndentback to summary
public void upIndent()
writeback to summary
public void write(int c) throws IOException

Overrides java.io.FilterWriter.write.

Doc from java.io.FilterWriter.write.

Writes a single character.

Parameters
c:int

Doc from java.io.Writer.write.

int specifying a character to be written

Exceptions
IOException:
If an I/O error occurs
writeback to summary
public void write(char[] chars, int off, int len) throws IOException

Overrides java.io.FilterWriter.write.

Doc from java.io.FilterWriter.write.

Writes a portion of an array of characters.

Parameters
chars:char[]

Buffer of characters to be written

off:int

Offset from which to start reading characters

len:int

Number of characters to be written

Exceptions
IOException:
If an I/O error occurs
writeback to summary
public void write(String s, int off, int len) throws IOException

Overrides java.io.FilterWriter.write.

Doc from java.io.FilterWriter.write.

Writes a portion of a string.

Parameters
s:String

String to be written

off:int

Offset from which to start reading characters

len:int

Number of characters to be written

Exceptions
IOException:
If an I/O error occurs