public final class WhitespaceIndentation extends AbstractIndentation
WhitespaceIndentation is an Indentation that repeats a
given repetition of a Whitespace character.
The strings containing the repetitions of the indentation string will be reused.
DEFAULT, INVISIBLE| Constructor and Description |
|---|
WhitespaceIndentation(Whitespace whitespace,
int length)
|
WhitespaceIndentation(Whitespace whitespace,
int length,
LineBreak lineBreak)
Creates a new
WhitespaceIndentation. |
public WhitespaceIndentation(Whitespace whitespace, int length) throws IllegalArgumentException
WhitespaceIndentation using the
LineBreak.SYSTEM LineBreak.
A WhitespaceIndentation with level 0 has no visible
effect.
whitespace - The Whitespace character to be used.length - The indentation length to be used.IllegalArgumentException - If the given Writer is null or if the
given Whitespace character is null or if
the given indentation length is negative.public WhitespaceIndentation(Whitespace whitespace, int length, LineBreak lineBreak) throws IllegalArgumentException
WhitespaceIndentation.
A WhitespaceIndentation with level 0 has no visible
effect.
whitespace - The Whitespace character to be used.length - The indentation length to be used.lineBreak - the LineBreak to be used.IllegalArgumentException - If the given Writer is null or if the
given Whitespace character is null or if
the given indentation length is negative or if the given
LineBreak is null.Copyright © 2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.