Class YamlReader

java.lang.Object
brut.androlib.apk.YamlReader

public class YamlReader extends Object
  • Constructor Details

  • Method Details

    • pushLine

      public void pushLine()
    • read

      public void read(InputStream in)
    • getLine

      public YamlLine getLine()
    • getIndent

      public int getIndent()
    • isEnd

      public boolean isEnd()
    • isCommentOrEmpty

      public boolean isCommentOrEmpty()
    • skipInsignificant

      public void skipInsignificant()
    • nextLine

      public boolean nextLine()
    • readRoot

      public <T extends YamlSerializable> void readRoot(T obj) throws AndrolibException
      Read root object from start to end
      Throws:
      AndrolibException
    • readObject

      public <T> void readObject(T obj, brut.androlib.apk.YamlReader.Checker check, brut.androlib.apk.YamlReader.Updater<T> updater) throws AndrolibException
      Read object. Reader stand on the object name. The object data should be placed on the next line and have indent.
      Throws:
      AndrolibException
    • readList

      public <T> void readList(List<T> list, brut.androlib.apk.YamlReader.Updater<List<T>> updater) throws AndrolibException
      Read list. Reader stand on the object name. The list data should be placed on the next line. Data should have same indent. May by same with name.
      Throws:
      AndrolibException
    • readStringList

      public void readStringList(List<String> list) throws AndrolibException
      Throws:
      AndrolibException
    • readIntList

      public void readIntList(List<Integer> list) throws AndrolibException
      Throws:
      AndrolibException
    • readMap

      public void readMap(Map<String,String> map) throws AndrolibException
      Throws:
      AndrolibException