Package eu.mihosoft.vmf.core.io
Class MemoryResource
- java.lang.Object
-
- eu.mihosoft.vmf.core.io.MemoryResource
-
- All Implemented Interfaces:
Resource
,java.lang.AutoCloseable
public class MemoryResource extends java.lang.Object implements Resource
Memory resource. This class can be used for writing to memory instead of a file.- See Also:
FileResource
-
-
Constructor Summary
Constructors Constructor Description MemoryResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
void
close()
java.io.PrintWriter
open()
Opens this resource.
-
-
-
Method Detail
-
open
public java.io.PrintWriter open() throws java.io.IOException
Description copied from interface:Resource
Opens this resource.
-
close
public void close() throws java.io.IOException
-
asString
public java.lang.String asString()
-
-