Java Doc for StreamModule.java in  » EJB-Server-resin-3.1.5 » quercus » com » caucho » quercus » lib » file » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » quercus » com.caucho.quercus.lib.file 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.quercus.module.AbstractQuercusModule
      com.caucho.quercus.lib.file.StreamModule

StreamModule
public class StreamModule extends AbstractQuercusModule (Code)
Handling the PHP Stream API


Field Summary
final public static  intPSFS_ERR_FATAL
    
final public static  intPSFS_FEED_ME
    
final public static  intPSFS_PASS_ON
    
final public static  intSTREAM_CLIENT_ASYNC_CONNECT
    
final public static  intSTREAM_CLIENT_CONNECT
    
final public static  intSTREAM_CLIENT_PERSISTENT
    
final public static  intSTREAM_FILTER_ALL
    
final public static  intSTREAM_FILTER_READ
    
final public static  intSTREAM_FILTER_WRITE
    
final public static  intSTREAM_REPORT_ERRORS
    
final public static  intSTREAM_SERVER_BIND
    
final public static  intSTREAM_SERVER_LISTEN
    
final public static  intSTREAM_URL_STAT_LINK
    
final public static  intSTREAM_URL_STAT_QUIET
    
final public static  intSTREAM_USE_PATH
    


Method Summary
public  Map<String, Value>getConstMap()
     Adds the constant to the PHP engine's constant map.
protected static  ProtocolWrappergetWrapper(String protocol)
    
public static  Valuestream_context_create(Env env, ArrayValue options)
     Creates a stream context.
public static  Valuestream_context_get_default(Env env, ArrayValue options)
     Returns the default stream context.
public static  Valuestream_context_get_options(Env env, Value resource)
     Returns the options from a stream context.
public static  booleanstream_context_set_option(Env env, Value resource, String wrapper, String option, Value value)
     Set an options for a stream context.
public static  booleanstream_context_set_params(Env env, Value resource, ArrayValue value)
    
public static  longstream_copy_to_stream(Env env, BinaryInput in, BinaryOutput out, int length, int offset)
    
public static  Valuestream_get_contents(Env env, BinaryInput in, long maxLen, long offset)
    
public static  Valuestream_get_line(Env env, BinaryInput file, long length)
    
public static  Valuestream_get_meta_data(Env env, BinaryStream stream)
     Returns the metadata of this stream.
public static  Valuestream_get_transports(Env env)
     Returns the available transports.
public static  Valuestream_get_wrappers(Env env)
     Returns the available wrappers.
public static  booleanstream_register_wrapper(Env env, StringValue protocol, String className)
    
public static  booleanstream_set_blocking(Env env, Value stream, int mode)
    
public static  booleanstream_set_timeout(Env env, Value stream, int seconds, int milliseconds)
    
public static  intstream_set_write_buffer(Env env, BinaryOutput stream, int bufferSize)
     Sets the write buffer.
public static  Valuestream_socket_client(Env env, String remoteSocket, Value errorInt, Value errorStr, double timeout, int flags, StreamContextResource context)
    
public static  voidstream_wrapper_register(StringValue protocol, ProtocolWrapper wrapper)
    
public static  booleanstream_wrapper_register(Env env, StringValue protocol, String className)
     Register a wrapper for a protocol.
public static  booleanstream_wrapper_restore(Env env, StringValue protocol)
     Register a wrapper for a protocol.
public static  booleanstream_wrapper_unregister(Env env, StringValue protocol)
     Register a wrapper for a protocol.

Field Detail
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)





Method Detail
getConstMap
public Map<String, Value> getConstMap()(Code)
Adds the constant to the PHP engine's constant map. the new constant chain



getWrapper
protected static ProtocolWrapper getWrapper(String protocol)(Code)



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_line
public static Value stream_get_line(Env env, BinaryInput file, long length)(Code)
Returns the next line



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_register_wrapper
public static boolean stream_register_wrapper(Env env, StringValue protocol, String className)(Code)



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_socket_client
public static Value stream_socket_client(Env env, String remoteSocket, Value errorInt, Value errorStr, double timeout, int flags, StreamContextResource context)(Code)



stream_wrapper_register
public static void stream_wrapper_register(StringValue protocol, ProtocolWrapper wrapper)(Code)



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.



Fields inherited from com.caucho.quercus.module.AbstractQuercusModule
final protected static int PHP_INI_ALL(Code)(Java Doc)
final protected static int PHP_INI_PERDIR(Code)(Java Doc)
final protected static int PHP_INI_SYSTEM(Code)(Java Doc)
final protected static int PHP_INI_USER(Code)(Java Doc)

Methods inherited from com.caucho.quercus.module.AbstractQuercusModule
public Map<String, Value> getConstMap()(Code)(Java Doc)
public IniDefinitions getIniDefinitions()(Code)(Java Doc)
public String[] getLoadedExtensions()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.