Package com.cosium.code.format
Class TemporaryFile
- java.lang.Object
-
- com.cosium.code.format.TemporaryFile
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class TemporaryFile extends Object implements Closeable
- Author:
- Réda Housni Alaoui
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static TemporaryFilecreate(org.apache.maven.plugin.logging.Log log, String virtualName)InputStreamnewInputStream()OutputStreamnewOutputStream()longsize()
-
-
-
Method Detail
-
create
public static TemporaryFile create(org.apache.maven.plugin.logging.Log log, String virtualName)
-
newOutputStream
public OutputStream newOutputStream() throws IOException
- Throws:
IOException
-
newInputStream
public InputStream newInputStream() throws IOException
- Throws:
IOException
-
size
public long size() throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-