Class TempManager


  • final class TempManager
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.nio.file.Path tempDir  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TempManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.file.Path createTempDirectory​(java.lang.String prefix, java.nio.file.attribute.FileAttribute<?>... attrs)  
      static java.nio.file.Path createTempFile​(java.lang.String prefix, java.lang.String suffix, java.nio.file.attribute.FileAttribute<?>... attrs)  
      private static void delete​(java.nio.file.Path path)  
      private static java.nio.file.Path getTempDir()  
      • Methods inherited from class java.lang.Object

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

      • tempDir

        private static java.nio.file.Path tempDir
    • Constructor Detail

      • TempManager

        private TempManager()
    • Method Detail

      • delete

        private static void delete​(java.nio.file.Path path)
      • getTempDir

        private static java.nio.file.Path getTempDir()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createTempFile

        public static java.nio.file.Path createTempFile​(java.lang.String prefix,
                                                        java.lang.String suffix,
                                                        java.nio.file.attribute.FileAttribute<?>... attrs)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • createTempDirectory

        public static java.nio.file.Path createTempDirectory​(java.lang.String prefix,
                                                             java.nio.file.attribute.FileAttribute<?>... attrs)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException