railo.runtime.functions.file
Class FileStreamWrapperWrite

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

public class FileStreamWrapperWrite
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_SOFT, TYPE_SYNC, TYPE_WEAKED
 
Constructor Summary
FileStreamWrapperWrite(Resource res, String charset, boolean append, boolean seekable)
           
 
Method Summary
 void close()
           
 String getMode()
           
 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, entryIterator, get, get, getFilename, getFilepath, getLabel, getLastmodified, getMetadata, getResource, getSize, getStatus, info, isEndOfFile, keyIterator, keys, keysAsStringIterator, read, readLine, remove, removeEL, set, setEL, setStatus, size, toDumpData, toString, valueIterator, values
 
Methods inherited from class railo.runtime.type.util.StructSupport
call, callWithNamedValues, clone, containsKey, containsKey, entrySet, equals, get, get, get, get, get, getIterator, hashCode, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf
 
Methods inherited from class java.lang.Object
getClass, 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.ForEachIteratorable
getIterator
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove
 
Methods inherited from interface railo.runtime.type.Sizeable
sizeOf
 
Methods inherited from interface railo.runtime.type.Objects
call, callWithNamedValues, get, get, set, setEL
 

Constructor Detail

FileStreamWrapperWrite

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

write

public void write(Object obj)
           throws IOException
Overrides:
write in class FileStreamWrapper
Throws:
IOException

close

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

getMode

public String getMode()
Specified by:
getMode in class FileStreamWrapper

skip

public void skip(int len)
          throws PageException
Specified by:
skip in class FileStreamWrapper
Throws:
PageException

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