oscript.util
Class InputStreamFile

java.lang.Object
  extended byoscript.fs.AbstractAbstractFile
      extended byoscript.util.InputStreamFile
All Implemented Interfaces:
AbstractFile, java.io.Serializable

public class InputStreamFile
extends AbstractAbstractFile

Converts an input-stream to abstract-file.

Author:
Rob Clark (rob@ti.com)
See Also:
Serialized Form

Constructor Summary
InputStreamFile(java.io.InputStream is, java.lang.String path)
          Class Constructor.
InputStreamFile(java.io.Reader r, java.lang.String path)
          Class Constructor.
 
Method Summary
 java.io.InputStream getInputStream()
          Get an input stream to read from this file.
 
Methods inherited from class oscript.fs.AbstractAbstractFile
canRead, canWrite, createNewFile, delete, equals, exists, getExtension, getName, getOutputStream, getPath, hashCode, isDirectory, isFile, lastModified, length, mkdir, mkdirs, toString, touch
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputStreamFile

public InputStreamFile(java.io.InputStream is,
                       java.lang.String path)
Class Constructor.

Parameters:
path - the file name

InputStreamFile

public InputStreamFile(java.io.Reader r,
                       java.lang.String path)
Class Constructor.

Parameters:
path - the file name
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Get an input stream to read from this file.

Returns:
input stream
Throws:
java.io.IOException - if canRead returns true
See Also:
AbstractAbstractFile.canRead()