|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.caucho.quercus.lib.file.AbstractBinaryOutput
com.caucho.quercus.lib.file.FileOutput
public class FileOutput
Represents a PHP open file
Field Summary |
---|
Fields inherited from interface com.caucho.quercus.lib.file.BinaryStream |
---|
SEEK_CUR, SEEK_END, SEEK_SET |
Constructor Summary | |
---|---|
FileOutput(Env env,
Path path)
|
|
FileOutput(Env env,
Path path,
boolean isAppend)
|
Method Summary | |
---|---|
void |
cleanup()
Implements the EnvCleanup interface. |
void |
close()
Closes the file. |
void |
closeWrite()
Closes the file. |
void |
flush()
Flushes the output. |
java.io.OutputStream |
getOutputStream()
Returns the write stream. |
Path |
getPath()
Returns the file's path. |
long |
getPosition()
Returns the current location in the file. |
boolean |
lock(boolean shared,
boolean block)
Lock the shared advisory lock. |
void |
print(char v)
Prints a string to a file. |
void |
print(java.lang.String v)
Prints a string to a file. |
boolean |
setPosition(long offset)
Sets the current location in the stream |
Value |
stat()
Returns an array filled with stat information. |
java.lang.String |
toString()
Converts to a string. |
boolean |
unlock()
Unlock the advisory lock. |
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer to a file. |
void |
write(int ch)
Writes a character |
Methods inherited from class com.caucho.quercus.lib.file.AbstractBinaryOutput |
---|
getResourceType, isEOF, seek, write |
Methods inherited from class java.io.OutputStream |
---|
write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileOutput(Env env, Path path) throws java.io.IOException
java.io.IOException
public FileOutput(Env env, Path path, boolean isAppend) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.io.OutputStream getOutputStream()
getOutputStream
in interface BinaryOutput
getOutputStream
in class AbstractBinaryOutput
public Path getPath()
public void print(char v) throws java.io.IOException
print
in interface BinaryOutput
print
in class AbstractBinaryOutput
java.io.IOException
public void print(java.lang.String v) throws java.io.IOException
print
in interface BinaryOutput
print
in class AbstractBinaryOutput
java.io.IOException
public void write(int ch) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
write
in interface BinaryOutput
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface BinaryOutput
flush
in interface java.io.Flushable
flush
in class AbstractBinaryOutput
java.io.IOException
public void closeWrite()
closeWrite
in interface BinaryOutput
closeWrite
in class AbstractBinaryOutput
public void close()
close
in interface BinaryOutput
close
in interface BinaryStream
close
in interface java.io.Closeable
close
in class AbstractBinaryOutput
public void cleanup()
cleanup
in interface EnvCleanup
public boolean lock(boolean shared, boolean block)
lock
in interface LockableStream
public boolean unlock()
unlock
in interface LockableStream
public Value stat()
BinaryStream
stat
in interface BinaryStream
stat
in class AbstractBinaryOutput
public long getPosition()
getPosition
in interface BinaryStream
getPosition
in class AbstractBinaryOutput
public boolean setPosition(long offset)
setPosition
in interface BinaryStream
setPosition
in class AbstractBinaryOutput
public java.lang.String toString()
toString
in class java.lang.Object
env
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |