Interface KieFileSystem


  • public interface KieFileSystem
    KieFileSystem is an in memory file system used to programmatically define the resources composing a KieModule
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String... paths)
      Removes the files in the given paths from this KieFileSystem
      KieFileSystem generateAndWritePomXML​(ReleaseId releaseId)
      Generates a basic maven pom file with the given ReleaseId (groupId, artifactId and version) and adds it to this KieFileSystem
      byte[] read​(java.lang.String path)
      Returns the content of the file in the specified path as a byte[]
      KieFileSystem write​(java.lang.String path, byte[] content)
      Adds the given content to this KieFileSystem in the specified path
      KieFileSystem write​(java.lang.String path, java.lang.String content)
      Adds the given content to this KieFileSystem in the specified path
      KieFileSystem write​(java.lang.String path, Resource resource)
      Adds the given Resource to this KieFileSystem in the specified path
      KieFileSystem write​(Resource resource)
      Adds the given Resource to this KieFileSystem
      KieFileSystem writeKModuleXML​(byte[] content)
      Adds the given kmodule.xml file to this KieFileSystem
      KieFileSystem writeKModuleXML​(java.lang.String content)
      Adds the given kmodule.xml file to this KieFileSystem
      KieFileSystem writePomXML​(byte[] content)
      Adds the given pom.xml file to this KieFileSystem
      KieFileSystem writePomXML​(java.lang.String content)
      Adds the given pom.xml file to this KieFileSystem
    • Method Detail

      • generateAndWritePomXML

        KieFileSystem generateAndWritePomXML​(ReleaseId releaseId)
        Generates a basic maven pom file with the given ReleaseId (groupId, artifactId and version) and adds it to this KieFileSystem
      • writePomXML

        KieFileSystem writePomXML​(byte[] content)
        Adds the given pom.xml file to this KieFileSystem
      • writePomXML

        KieFileSystem writePomXML​(java.lang.String content)
        Adds the given pom.xml file to this KieFileSystem
      • writeKModuleXML

        KieFileSystem writeKModuleXML​(byte[] content)
        Adds the given kmodule.xml file to this KieFileSystem
      • writeKModuleXML

        KieFileSystem writeKModuleXML​(java.lang.String content)
        Adds the given kmodule.xml file to this KieFileSystem
      • write

        KieFileSystem write​(java.lang.String path,
                            byte[] content)
        Adds the given content to this KieFileSystem in the specified path
      • write

        KieFileSystem write​(java.lang.String path,
                            java.lang.String content)
        Adds the given content to this KieFileSystem in the specified path
      • write

        KieFileSystem write​(java.lang.String path,
                            Resource resource)
        Adds the given Resource to this KieFileSystem in the specified path
      • delete

        void delete​(java.lang.String... paths)
        Removes the files in the given paths from this KieFileSystem
      • read

        byte[] read​(java.lang.String path)
        Returns the content of the file in the specified path as a byte[]