Class ConfigurateFilterReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- ca.stellardrift.build.configurate.transformations.ConfigurateFilterReader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.lang.Readable
public class ConfigurateFilterReader extends java.io.FilterReaderAn implementation ofFilterReaderthat transforms the read content from one configuration format to another.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_DESTstatic java.lang.StringPARAM_SOURCEstatic java.lang.StringPARAM_TRANSFORMER
-
Constructor Summary
Constructors Constructor Description ConfigurateFilterReader(@NonNull java.io.Reader in)Creates a new filtered reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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)
-
-
-
Field Detail
-
PARAM_SOURCE
public static final java.lang.String PARAM_SOURCE
- See Also:
- Constant Field Values
-
PARAM_DEST
public static final java.lang.String PARAM_DEST
- See Also:
- Constant Field Values
-
PARAM_TRANSFORMER
public static final java.lang.String PARAM_TRANSFORMER
- See Also:
- Constant Field Values
-
-
Method Detail
-
source
public void source(ConfigSource source)
-
dest
public void dest(ConfigTarget dest)
-
transformer
public void transformer(org.gradle.api.Action<ConfigurationNode> func)
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterReader- Throws:
java.io.IOException
-
read
public int read(char[] cbuf, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.FilterReader- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.FilterReader- Throws:
java.io.IOException
-
ready
public boolean ready() throws java.io.IOException- Overrides:
readyin classjava.io.FilterReader- Throws:
java.io.IOException
-
mark
public void mark(int readAheadLimit) throws java.io.IOException- Overrides:
markin classjava.io.FilterReader- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.FilterReader- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterReader- Throws:
java.io.IOException
-
-