railo.runtime.functions.file
Class FileStreamWrapperRead

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.functions.file.FileStreamWrapper
          extended by railo.runtime.functions.file.FileStreamWrapperRead
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, Castable, Collection, Iteratorable, Sizeable, Struct

public class FileStreamWrapperRead
extends FileStreamWrapper

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class railo.runtime.functions.file.FileStreamWrapper
STATE_CLOSE, STATE_OPEN
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED
 
Constructor Summary
FileStreamWrapperRead(Resource res, String charset, boolean seekable)
          Constructor of the class
 
Method Summary
 void close()
           
 String getMode()
           
 long getSize()
           
 boolean isEndOfFile()
           
 Object read(int len)
           
 String readLine()
           
 void seek(long pos)
           
 void skip(int len)
           
 
Methods inherited from class railo.runtime.functions.file.FileStreamWrapper
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clear, compareTo, compareTo, compareTo, compareTo, containsKey, containsValue, duplicate, get, get, getFilename, getFilepath, getLabel, getLastmodified, getMetadata, getResource, getStatus, info, keyIterator, keys, keysAsString, remove, removeEL, set, setEL, setStatus, size, toDumpData, toString, values, write
 
Methods inherited from class railo.runtime.type.util.StructSupport
clone, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, sizeOf, valueIterator
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.type.Collection
clone, containsKey, get, get, set, setEL
 
Methods inherited from interface railo.runtime.type.Iteratorable
iterator, valueIterator
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove
 

Constructor Detail

FileStreamWrapperRead

public FileStreamWrapperRead(Resource res,
                             String charset,
                             boolean seekable)
Constructor of the class

Parameters:
res -
charset -
Throws:
IOException
Method Detail

read

public Object read(int len)
            throws IOException
Overrides:
read in class FileStreamWrapper
Throws:
IOException
See Also:
FileStreamWrapper.read(int)

readLine

public String readLine()
                throws IOException
Overrides:
readLine in class FileStreamWrapper
Throws:
IOException
See Also:
FileStreamWrapper.readLine()

close

public void close()
           throws IOException
Specified by:
close in class FileStreamWrapper
Throws:
IOException
See Also:
FileStreamWrapper.close()

getMode

public String getMode()
Specified by:
getMode in class FileStreamWrapper
See Also:
FileStreamWrapper.getMode()

isEndOfFile

public boolean isEndOfFile()
Overrides:
isEndOfFile in class FileStreamWrapper

getSize

public long getSize()
Overrides:
getSize in class FileStreamWrapper
See Also:
FileStreamWrapper.getSize()

skip

public void skip(int len)
          throws PageException
Specified by:
skip in class FileStreamWrapper
Throws:
PageException
See Also:
railo.runtime.functions.file.FileStreamWrapper#skip(long)

seek

public void seek(long pos)
          throws PageException
Specified by:
seek in class FileStreamWrapper
Throws:
PageException


Copyright © 2012 Railo