Package io.automatiko.engine.services.io
Class ReaderResource
- java.lang.Object
-
- io.automatiko.engine.services.io.BaseResource
-
- io.automatiko.engine.services.io.ReaderResource
-
- All Implemented Interfaces:
io.automatiko.engine.api.io.Resource,InternalResource,Serializable
public class ReaderResource extends BaseResource implements InternalResource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.automatiko.engine.services.io.BaseResource
bytes
-
-
Constructor Summary
Constructors Constructor Description ReaderResource()ReaderResource(Reader reader)ReaderResource(Reader reader, io.automatiko.engine.api.io.ResourceType type)ReaderResource(Reader reader, String encoding)ReaderResource(Reader reader, String encoding, io.automatiko.engine.api.io.ResourceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncoding()InputStreamgetInputStream()ReadergetReader()URLgetURL()booleanhasURL()booleanisDirectory()Collection<io.automatiko.engine.api.io.Resource>listResources()StringtoString()-
Methods inherited from class io.automatiko.engine.services.io.BaseResource
addCategory, equals, getBytes, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, hashCode, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPath
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.automatiko.engine.services.io.InternalResource
addCategory, getBytes, getCategories, getDescription, getResourceType, setCategories, setDescription, setResourceType
-
-
-
-
Method Detail
-
getURL
public URL getURL() throws IOException
- Specified by:
getURLin interfaceInternalResource- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceio.automatiko.engine.api.io.Resource- Throws:
IOException
-
getReader
public Reader getReader()
- Specified by:
getReaderin interfaceio.automatiko.engine.api.io.Resource
-
getEncoding
public String getEncoding()
- Specified by:
getEncodingin interfaceInternalResource
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectoryin interfaceInternalResource
-
listResources
public Collection<io.automatiko.engine.api.io.Resource> listResources()
- Specified by:
listResourcesin interfaceInternalResource
-
hasURL
public boolean hasURL()
- Specified by:
hasURLin interfaceInternalResource
-
toString
public String toString()
- Overrides:
toStringin classBaseResource
-
-