Package org.citydb.file
Class OutputFile
- java.lang.Object
-
- org.citydb.file.OutputFile
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
AbstractArchiveOutputFile
,AbstractRegularOutputFile
public abstract class OutputFile extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OutputFile(java.nio.file.Path file, FileType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
close()
abstract void
createDirectories(java.lang.String path)
java.nio.file.Path
getFile()
FileType
getType()
abstract java.io.OutputStream
newOutputStream(java.lang.String file)
abstract java.io.OutputStream
openStream()
abstract java.lang.String
resolve(java.lang.String... paths)
-
-
-
Field Detail
-
file
protected final java.nio.file.Path file
-
type
protected final FileType type
-
-
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 interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
getFile
public java.nio.file.Path getFile()
-
getType
public FileType getType()
-
-