Package org.openjdk.jmc.test.io
Class FileResource
java.lang.Object
org.openjdk.jmc.test.io.FileResource
- All Implemented Interfaces:
IOResource
A resource available from a file on a disk.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileResource
-
-
Method Details
-
open
Description copied from interface:IOResourceOpens a stream that can be used to read the contents of the resource. Relies on caller to close the stream.- Specified by:
openin interfaceIOResource- Returns:
- an
InputStream - Throws:
IOException
-
close
public void close()Description copied from interface:IOResourceCloses whatever resources are not closed by caller to open.- Specified by:
closein interfaceIOResource
-
getName
Description copied from interface:IOResourceThe name of the resource.- Specified by:
getNamein interfaceIOResource- Returns:
- the name
-
toString
-