Interface BuilderContext


  • public interface BuilderContext
    • Method Detail

      • defaultProvider

        static <T> FileInformationProvider<T> defaultProvider()
        Get a default information provider

        This provider will only used provided information, set the access modes to @0755 for directories and to 0644 for all others. It will use the default user (root) and group (root) and use the current time as file timestamp.

        Type Parameters:
        T - the object type to use as information source
        Returns:
        the default information provider
      • setDefaultInformationProvider

        void setDefaultInformationProvider​(FileInformationProvider<java.lang.Object> provider)
      • addFile

        default void addFile​(java.lang.String targetName,
                             java.nio.file.Path source)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        void addFile​(java.lang.String targetName,
                     java.nio.file.Path source,
                     FileInformationProvider<? super java.nio.file.Path> provider)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             java.nio.file.Path source,
                             SimpleFileInformationCustomizer customizer)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             java.io.InputStream source)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        void addFile​(java.lang.String targetName,
                     java.io.InputStream source,
                     FileInformationProvider<java.lang.Object> provider)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             java.io.InputStream source,
                             SimpleFileInformationCustomizer customizer)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             java.nio.ByteBuffer source)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        void addFile​(java.lang.String targetName,
                     java.nio.ByteBuffer source,
                     FileInformationProvider<java.lang.Object> provider)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             java.nio.ByteBuffer source,
                             SimpleFileInformationCustomizer customizer)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             byte[] source)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             byte[] source,
                             FileInformationProvider<java.lang.Object> provider)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addFile

        default void addFile​(java.lang.String targetName,
                             byte[] source,
                             SimpleFileInformationCustomizer customizer)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • addDirectory

        default void addDirectory​(java.lang.String targetName)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • addDirectory

        default void addDirectory​(java.lang.String targetName,
                                  SimpleFileInformationCustomizer customizer)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • addSymbolicLink

        default void addSymbolicLink​(java.lang.String targetName,
                                     java.lang.String linkTo)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • addSymbolicLink

        default void addSymbolicLink​(java.lang.String targetName,
                                     java.lang.String linkTo,
                                     SimpleFileInformationCustomizer customizer)
                              throws java.io.IOException
        Throws:
        java.io.IOException