Class ObjectTransfer


  • final class ObjectTransfer
    extends java.lang.Object
    Transfers the object files from the JAR file to a temporary directory. The temporary directory will be deleted when the JVM shuts down.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.nio.file.Path> libraries
      The libraries copies.
      private java.nio.file.Path targetDirectory
      The destination temporary directory.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectTransfer()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String getArchName()  
      (package private) java.util.List<java.nio.file.Path> getObjectFiles()  
      private static java.lang.String getOsName()  
      (package private) static java.lang.String toLibraryName​(java.lang.String name)  
      (package private) void transfer​(java.lang.String... names)  
      private void transferTo​(java.io.InputStream inputStream, java.nio.file.Path targetFile)  
      • Methods inherited from class java.lang.Object

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

      • targetDirectory

        private final java.nio.file.Path targetDirectory
        The destination temporary directory.
      • libraries

        private final java.util.List<java.nio.file.Path> libraries
        The libraries copies.
    • Constructor Detail

      • ObjectTransfer

        ObjectTransfer()
                throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getOsName

        private static java.lang.String getOsName()
      • getArchName

        private static java.lang.String getArchName()
      • toLibraryName

        static java.lang.String toLibraryName​(java.lang.String name)
      • getObjectFiles

        final java.util.List<java.nio.file.Path> getObjectFiles()
      • transfer

        final void transfer​(java.lang.String... names)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • transferTo

        private void transferTo​(java.io.InputStream inputStream,
                                java.nio.file.Path targetFile)
                         throws java.io.IOException
        Throws:
        java.io.IOException