Package org.teiid.query.metadata
Class VDBResources.Resource
- java.lang.Object
-
- org.teiid.query.metadata.VDBResources.Resource
-
- All Implemented Interfaces:
VDBResource
- Enclosing class:
- VDBResources
public static class VDBResources.Resource extends Object implements VDBResource
-
-
Constructor Summary
Constructors Constructor Description Resource(VirtualFile file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Get the resource name.long
getSize()
Get the size in bytesInputStream
openStream()
Open anInputStream
to the resource
-
-
-
Constructor Detail
-
Resource
public Resource(VirtualFile file)
-
-
Method Detail
-
openStream
public InputStream openStream() throws IOException
Description copied from interface:VDBResource
Open anInputStream
to the resource- Specified by:
openStream
in interfaceVDBResource
- Returns:
- Throws:
IOException
-
getSize
public long getSize()
Description copied from interface:VDBResource
Get the size in bytes- Specified by:
getSize
in interfaceVDBResource
- Returns:
-
getName
public String getName()
Description copied from interface:VDBResource
Get the resource name.- Specified by:
getName
in interfaceVDBResource
- Returns:
-
-