| java.lang.Object com.caucho.quercus.module.AbstractQuercusModule com.caucho.quercus.lib.file.StreamModule
Method Summary | |
public Map<String, Value> | getConstMap() Adds the constant to the PHP engine's constant map. | protected static ProtocolWrapper | getWrapper(String protocol) | public static Value | stream_context_create(Env env, ArrayValue options) Creates a stream context. | public static Value | stream_context_get_default(Env env, ArrayValue options) Returns the default stream context. | public static Value | stream_context_get_options(Env env, Value resource) Returns the options from a stream context. | public static boolean | stream_context_set_option(Env env, Value resource, String wrapper, String option, Value value) Set an options for a stream context. | public static boolean | stream_context_set_params(Env env, Value resource, ArrayValue value) | public static long | stream_copy_to_stream(Env env, BinaryInput in, BinaryOutput out, int length, int offset) | public static Value | stream_get_contents(Env env, BinaryInput in, long maxLen, long offset) | public static Value | stream_get_line(Env env, BinaryInput file, long length) | public static Value | stream_get_meta_data(Env env, BinaryStream stream) Returns the metadata of this stream. | public static Value | stream_get_transports(Env env) Returns the available transports. | public static Value | stream_get_wrappers(Env env) Returns the available wrappers. | public static boolean | stream_register_wrapper(Env env, StringValue protocol, String className) | public static boolean | stream_set_blocking(Env env, Value stream, int mode) | public static boolean | stream_set_timeout(Env env, Value stream, int seconds, int milliseconds) | public static int | stream_set_write_buffer(Env env, BinaryOutput stream, int bufferSize) Sets the write buffer. | public static Value | stream_socket_client(Env env, String remoteSocket, Value errorInt, Value errorStr, double timeout, int flags, StreamContextResource context) | public static void | stream_wrapper_register(StringValue protocol, ProtocolWrapper wrapper) | public static boolean | stream_wrapper_register(Env env, StringValue protocol, String className) Register a wrapper for a protocol. | public static boolean | stream_wrapper_restore(Env env, StringValue protocol) Register a wrapper for a protocol. | public static boolean | stream_wrapper_unregister(Env env, StringValue protocol) Register a wrapper for a protocol. |
PSFS_ERR_FATAL | final public static int PSFS_ERR_FATAL(Code) | | |
PSFS_FEED_ME | final public static int PSFS_FEED_ME(Code) | | |
PSFS_PASS_ON | final public static int PSFS_PASS_ON(Code) | | |
STREAM_CLIENT_ASYNC_CONNECT | final public static int STREAM_CLIENT_ASYNC_CONNECT(Code) | | |
STREAM_CLIENT_CONNECT | final public static int STREAM_CLIENT_CONNECT(Code) | | |
STREAM_CLIENT_PERSISTENT | final public static int STREAM_CLIENT_PERSISTENT(Code) | | |
STREAM_FILTER_ALL | final public static int STREAM_FILTER_ALL(Code) | | |
STREAM_FILTER_READ | final public static int STREAM_FILTER_READ(Code) | | |
STREAM_FILTER_WRITE | final public static int STREAM_FILTER_WRITE(Code) | | |
STREAM_REPORT_ERRORS | final public static int STREAM_REPORT_ERRORS(Code) | | |
STREAM_SERVER_BIND | final public static int STREAM_SERVER_BIND(Code) | | |
STREAM_SERVER_LISTEN | final public static int STREAM_SERVER_LISTEN(Code) | | |
STREAM_URL_STAT_LINK | final public static int STREAM_URL_STAT_LINK(Code) | | |
STREAM_URL_STAT_QUIET | final public static int STREAM_URL_STAT_QUIET(Code) | | |
STREAM_USE_PATH | final public static int STREAM_USE_PATH(Code) | | |
getConstMap | public Map<String, Value> getConstMap()(Code) | | Adds the constant to the PHP engine's constant map.
the new constant chain |
stream_context_create | public static Value stream_context_create(Env env, ArrayValue options)(Code) | | Creates a stream context.
|
stream_context_get_default | public static Value stream_context_get_default(Env env, ArrayValue options)(Code) | | Returns the default stream context.
|
stream_context_get_options | public static Value stream_context_get_options(Env env, Value resource)(Code) | | Returns the options from a stream context.
|
stream_context_set_option | public static boolean stream_context_set_option(Env env, Value resource, String wrapper, String option, Value value)(Code) | | Set an options for a stream context.
|
stream_context_set_params | public static boolean stream_context_set_params(Env env, Value resource, ArrayValue value)(Code) | | Sets parameters for the context
|
stream_copy_to_stream | public static long stream_copy_to_stream(Env env, BinaryInput in, BinaryOutput out, int length, int offset)(Code) | | Copies from an input stream to an output stream
|
stream_get_contents | public static Value stream_get_contents(Env env, BinaryInput in, long maxLen, long offset)(Code) | | Returns the rest of the file as a string
Parameters: filename - the file's name Parameters: useIncludePath - if true, use the include path Parameters: context - the resource context |
stream_get_meta_data | public static Value stream_get_meta_data(Env env, BinaryStream stream)(Code) | | Returns the metadata of this stream.
XXX: TODO
|
stream_get_transports | public static Value stream_get_transports(Env env)(Code) | | Returns the available transports.
|
stream_get_wrappers | public static Value stream_get_wrappers(Env env)(Code) | | Returns the available wrappers.
|
stream_set_blocking | public static boolean stream_set_blocking(Env env, Value stream, int mode)(Code) | | stream_set_blocking is stubbed since Quercus should wait for
any stream (unless a non-web-server Quercus is developed.)
|
stream_set_timeout | public static boolean stream_set_timeout(Env env, Value stream, int seconds, int milliseconds)(Code) | | |
stream_set_write_buffer | public static int stream_set_write_buffer(Env env, BinaryOutput stream, int bufferSize)(Code) | | Sets the write buffer.
|
stream_wrapper_register | public static boolean stream_wrapper_register(Env env, StringValue protocol, String className)(Code) | | Register a wrapper for a protocol.
|
stream_wrapper_restore | public static boolean stream_wrapper_restore(Env env, StringValue protocol)(Code) | | Register a wrapper for a protocol.
|
stream_wrapper_unregister | public static boolean stream_wrapper_unregister(Env env, StringValue protocol)(Code) | | Register a wrapper for a protocol.
|
|
|