sleep.bridges.io

Class FileObject


public class FileObject
extends IOObject

Field Summary

protected File
file

Fields inherited from class sleep.bridges.io.IOObject

buffer, in, out, reader, readerb, readeru, thread, token, writerb, writeru

Method Summary

Object
getSource()
returns the file referenced by this IOObject
void
open(String descriptor, ScriptEnvironment env)
opens a file and references it to this file object.

Methods inherited from class sleep.bridges.io.IOObject

close, getBuffer, getConsole, getInputBuffer, getInputStream, getOutputStream, getReader, getSource, getThread, getToken, getWriter, isEOF, openRead, openWrite, print, printLine, readCharacter, readLine, sendEOF, setEncoding, setThread, setToken, wait

Field Details

file

protected File file

Method Details

getSource

public Object getSource()
returns the file referenced by this IOObject
Overrides:
getSource in interface IOObject

open

public void open(String descriptor,
                 ScriptEnvironment env)
opens a file and references it to this file object. the descriptor parameter is a filename