Class OutputFile

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.file.Path file  
      protected FileType type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OutputFile​(java.nio.file.Path file, FileType type)  
    • Field Detail

      • file

        protected final java.nio.file.Path file
    • Constructor Detail

      • OutputFile

        protected OutputFile​(java.nio.file.Path file,
                             FileType type)
    • Method Detail

      • openStream

        public abstract java.io.OutputStream openStream()
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • resolve

        public abstract java.lang.String resolve​(java.lang.String... paths)
                                          throws java.nio.file.InvalidPathException
        Throws:
        java.nio.file.InvalidPathException
      • createDirectories

        public abstract void createDirectories​(java.lang.String path)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • newOutputStream

        public abstract java.io.OutputStream newOutputStream​(java.lang.String file)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public abstract void close()
                            throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • getFile

        public java.nio.file.Path getFile()