Class NormalizeLineSeparatorReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.apache.maven.plugins.enforcer.utils.NormalizeLineSeparatorReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
Converts Unix line separators to Windows ones and vice-versa.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType representing either Unix or Windows line separators -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Characterprivate static final int(package private) final NormalizeLineSeparatorReader.LineSeparator(package private) CharacterFields inherited from class java.io.FilterReader
in -
Constructor Summary
ConstructorsConstructorDescriptionNormalizeLineSeparatorReader(Reader reader, NormalizeLineSeparatorReader.LineSeparator lineSeparator) -
Method Summary
Methods inherited from class java.io.FilterReader
close, mark, markSupported, ready, reset, skipMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Field Details
-
Constructor Details
-
NormalizeLineSeparatorReader
public NormalizeLineSeparatorReader(Reader reader, NormalizeLineSeparatorReader.LineSeparator lineSeparator)
-
-
Method Details
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-