Class ConfigurateFilterReader
java.lang.Object
java.io.Reader
java.io.FilterReader
ca.stellardrift.build.configurate.transformations.ConfigurateFilterReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
An implementation of
FilterReader that transforms
the read content from one configuration format to another.-
Field Summary
FieldsFields inherited from class java.io.FilterReader
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddest(ConfigTarget dest) voidmark(int readAheadLimit) intread()intread(char[] cbuf, int off, int len) booleanready()voidreset()longskip(long n) voidsource(ConfigSource source) voidtransformer(org.gradle.api.Action<ConfigurationNode> func) Methods inherited from class java.io.FilterReader
markSupported
-
Field Details
-
PARAM_SOURCE
- See Also:
-
PARAM_DEST
- See Also:
-
PARAM_TRANSFORMER
- See Also:
-
-
Constructor Details
-
ConfigurateFilterReader
Creates a new filtered reader.- Parameters:
in- a Reader object providing the underlying stream.- Throws:
NullPointerException- ifinisnull
-
-
Method Details
-
source
-
dest
-
transformer
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-
read
- Overrides:
readin classFilterReader- Throws:
IOException
-
skip
- Overrides:
skipin classFilterReader- Throws:
IOException
-
ready
- Overrides:
readyin classFilterReader- Throws:
IOException
-
mark
- Overrides:
markin classFilterReader- Throws:
IOException
-
reset
- Overrides:
resetin classFilterReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterReader- Throws:
IOException
-