Class ConfigurateFilterReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable

    public class ConfigurateFilterReader
    extends java.io.FilterReader
    An implementation of FilterReader that transforms the read content from one configuration format to another.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PARAM_DEST  
      static java.lang.String PARAM_SOURCE  
      static java.lang.String PARAM_TRANSFORMER  
      • Fields inherited from class java.io.FilterReader

        in
      • Fields inherited from class java.io.Reader

        lock
    • 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
      void close()  
      void dest​(ConfigTarget dest)  
      void mark​(int readAheadLimit)  
      int read()  
      int read​(char[] cbuf, int off, int len)  
      boolean ready()  
      void reset()  
      long skip​(long n)  
      void source​(ConfigSource source)  
      void transformer​(org.gradle.api.Action<ConfigurationNode> func)  
      • Methods inherited from class java.io.FilterReader

        markSupported
      • Methods inherited from class java.io.Reader

        read, read
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurateFilterReader

        public ConfigurateFilterReader​(@NonNull java.io.Reader in)
        Creates a new filtered reader.
        Parameters:
        in - a Reader object providing the underlying stream.
        Throws:
        java.lang.NullPointerException - if in is null
    • Method Detail

      • transformer

        public void transformer​(org.gradle.api.Action<ConfigurationNode> func)
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterReader
        Throws:
        java.io.IOException
      • read

        public int read​(char[] cbuf,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.FilterReader
        Throws:
        java.io.IOException
      • skip

        public long skip​(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.FilterReader
        Throws:
        java.io.IOException
      • ready

        public boolean ready()
                      throws java.io.IOException
        Overrides:
        ready in class java.io.FilterReader
        Throws:
        java.io.IOException
      • mark

        public void mark​(int readAheadLimit)
                  throws java.io.IOException
        Overrides:
        mark in class java.io.FilterReader
        Throws:
        java.io.IOException
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.FilterReader
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.FilterReader
        Throws:
        java.io.IOException