railo.runtime.functions.file
Class FileStreamWrapperReadWrite

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

public class FileStreamWrapperReadWrite
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
FileStreamWrapperReadWrite(Resource res, String charset, boolean seekable)
           
 
Method Summary
 void close()
           
 String getMode()
           
 long getSize()
           
 boolean isEndOfFile()
           
 Object read(int len)
           
 void seek(long pos)
           
 void skip(int len)
           
 void write(Object obj)
           
static void writeToRAF(InputStream is, RandomAccessFile raf)
           
 
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, readLine, remove, removeEL, set, setEL, setStatus, size, toDumpData, toString, values
 
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

FileStreamWrapperReadWrite

public FileStreamWrapperReadWrite(Resource res,
                                  String charset,
                                  boolean seekable)
Method Detail

write

public void write(Object obj)
           throws IOException
Overrides:
write in class FileStreamWrapper
Throws:
IOException
See Also:
FileStreamWrapper.write(java.lang.Object)

close

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

getMode

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

read

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

isEndOfFile

public boolean isEndOfFile()
Overrides:
isEndOfFile in class FileStreamWrapper
See Also:
FileStreamWrapper.isEndOfFile()

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

writeToRAF

public static void writeToRAF(InputStream is,
                              RandomAccessFile raf)
                       throws IOException
Throws:
IOException


Copyright © 2012 Railo