Java Doc for FileModule.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.FileModule

FileModule
public class FileModule extends AbstractQuercusModule (Code)
Information and actions for about files


Field Summary
final public static  StringDIRECTORY_SEPARATOR
    
final public static  intFILE_APPEND
    
final public static  intFILE_USE_INCLUDE_PATH
    
final public static  intFNM_CASEFOLD
    
final public static  intFNM_NOESCAPE
    
final public static  intFNM_PATHNAME
    
final public static  intFNM_PERIOD
    
final public static  intGLOB_BRACE
    
final public static  intGLOB_ERR
    
final public static  intGLOB_MARK
    
final public static  intGLOB_NOCHECK
    
final public static  intGLOB_NOESCAPE
    
final public static  intGLOB_NOSORT
    
final public static  intGLOB_ONLYDIR
    
final static  IniDefinitionINI_ALLOW_URL_FOPEN
    
final static  IniDefinitionINI_AUTO_DETECT_LINE_ENDINGS
    
final static  IniDefinitionINI_DEFAULT_SOCKET_TIMEOUT
    
final static  IniDefinitionINI_FILE_UPLOADS
    
final static  IniDefinitionINI_FROM
    
final static  IniDefinitionINI_UPLOAD_MAX_FILESIZE
    
final static  IniDefinitionINI_UPLOAD_TMP_DIR
    
final static  IniDefinitionINI_USER_AGENT
    
final public static  intLOCK_EX
    
final public static  intLOCK_NB
    
final public static  intLOCK_SH
    
final public static  intLOCK_UN
    
final public static  intPATHINFO_BASENAME
    
final public static  intPATHINFO_DIRNAME
    
final public static  intPATHINFO_EXTENSION
    
final public static  intPATHINFO_FILENAME
    
final public static  StringPATH_SEPARATOR
    
final public static  intUPLOAD_ERR_CANT_WRITE
    
final public static  intUPLOAD_ERR_EXTENSION
    
final public static  intUPLOAD_ERR_FORM_SIZE
    
final public static  intUPLOAD_ERR_INI_SIZE
    
final public static  intUPLOAD_ERR_NO_FILE
    
final public static  intUPLOAD_ERR_NO_TMP_DIR
    
final public static  intUPLOAD_ERR_OK
    
final public static  intUPLOAD_ERR_PARTIAL
    


Method Summary
public static  Valuebasename(StringValue path, StringValue suffix)
     Returns the base name of a string.
public static  booleanchdir(Env env, Path path)
    
public static  booleanchgrp(Env env, Path file, Value group)
     Changes the group of the file.
public static  booleanchmod(Env env, Path file, int mode)
     Changes the permissions of the file.
public static  booleanchown(Env env, Path file, Value user)
     Changes the ownership of the file.
public static  booleanchroot(Env env, Path path)
    
public static  Valueclearstatcache(Env env)
    
public static  voidclosedir(Env env, DirectoryValue dirV)
    
public static  booleancopy(Env env, Path src, Path dst)
     Copies a file to the destination.
public static  Directorydir(Env env, Path path)
    
public  StringValuedirname(Env env, StringValue path)
     Returns the directory name of a string.
public static  Valuedisk_free_space(Env env, Path directory)
    
public static  Valuedisk_total_space(Env env, Path directory)
    
public static  Valuediskfreespace(Env env, Path directory)
    
public static  booleanfclose(Env env, BinaryStream s)
     Closes a file.
public static  booleanfeof(Env env, BinaryInput is)
     Checks for the end of file.
public static  booleanfflush(Env env, BinaryOutput os)
     Flushes a file.
public static  Valuefgetc(Env env, BinaryInput is)
    
public  Valuefgetcsv(Env env, BinaryInput is, int length, String delimiter, String enclosure)
     Parses a comma-separated-value line from a file.
public static  Valuefgets(Env env, BinaryInput is, int length)
    
public static  Valuefgetss(Env env, BinaryInput is, int length, String allowedTags)
    
public static  Valuefile(Env env, StringValue filename, boolean useIncludePath, Value context)
     Parses the file, returning it in an array.
public static  booleanfile_exists(Path path)
    
public static  StringValuefile_get_contents(Env env, StringValue filename, boolean useIncludePath, Value context, long offset, long maxLen)
     Parses the file, returning it as a string array.
public  Valuefile_put_contents(Env env, StringValue filename, Value data, int flags, Value context)
     Writes data to a file.
public static  Valuefileatime(Env env, Path path)
    
public static  Valuefilectime(Env env, Path path)
    
public static  Valuefilegroup(Env env, Path path)
    
public static  Valuefileinode(Env env, Path path)
    
public static  Valuefilemtime(Env env, Path path)
    
public static  Valuefileowner(Env env, Path path)
    
public static  Valuefileperms(Env env, Path path)
    
public static  Valuefilesize(Env env, Path path)
    
public static  Valuefiletype(Env env, Path path)
    
public static  booleanflock(Env env, LockableStream fileV, int operation, Value wouldBlock)
    
public static  booleanfnmatch(Env env, String pattern, String string, int flags)
     Returns true if the given string matches the given glob pattern.
public static  BinaryStreamfopen(Env env, StringValue filename, String mode, boolean useIncludePath, Value context)
     Opens a file.
public  Valuefpassthru(Env env, BinaryInput is)
     Output the filepointer data to the output stream.
public  Valuefputcsv(Env env, BinaryOutput os, ArrayValue value, StringValue delimiter, StringValue enclosure)
     Parses a comma-separated-value line from a file.
public static  Valuefputs(Env env, BinaryOutput os, InputStream value, int length)
     Writes a string to the file.
public static  Valuefread(Env env, BinaryInput is, int length)
     Reads content from a file.
public static  Valuefscanf(Env env, BinaryInput is, StringValue format, Value[] args)
     Reads and parses a line.
public static  Valuefseek(Env env, BinaryInput is, long offset, int whence)
     Sets the current position.
public static  Valuefstat(Env env, BinaryStream stream)
     Returns the status of the given file pointer.
public static  Valueftell(Env env, BinaryInput is)
     Returns the current position.
public static  booleanftruncate(Env env, BinaryOutput handle, long size)
     Truncates a file.
public static  Valuefwrite(Env env, BinaryOutput os, InputStream value, int length)
     Writes a string to the file.
public  Map<String, Value>getConstMap()
     Returns the constants defined by this module.
public  IniDefinitionsgetIniDefinitions()
     Returns the default quercus.ini values.
public static  Stringgetcwd(Env env)
     Returns the current working directory.
public static  Valueglob(Env env, StringValue pattern, int flags)
     Matches all files with the given pattern.
public static  booleanis_dir(Path path)
     Returns true if the path is a directory.
public static  booleanis_executable(Path path)
    
public static  booleanis_file(Path path)
     Returns true if the path is a file.
public static  booleanis_link(Env env, Path path)
    
public static  booleanis_readable(Path path)
    
public static  booleanis_uploaded_file(Env env, Path path)
     Returns true for an uploaded file.
public static  booleanis_writable(Path path)
    
public static  booleanis_writeable(Path path)
    
public  booleanlink(Env env, Path source, Path destination)
    
public static  longlinkinfo(Env env, Path path)
    
public static  Valuelstat(Env env, StringValue filename)
    
public static  booleanmkdir(Env env, StringValue dirname, int mode, boolean recursive, Value context)
    
public static  booleanmove_uploaded_file(Env env, Path src, Path dst)
     Moves the uploaded file.
public static  Valueopendir(Env env, StringValue pathName, Value context)
    
public static  Valueparse_ini_file(Env env, Path path, boolean processSections)
     Parses the ini file.
public static  Valuepathinfo(Env env, String path, Value optionsV)
     Parses the path, splitting it into parts.
public static  intpclose(Env env, BinaryStream stream)
    
public static  BinaryStreampopen(Env env, String command, StringValue mode)
    
public static  Valuereaddir(Env env, DirectoryValue dir)
    
public  Valuereadfile(Env env, StringValue filename, boolean useIncludePath, Value context)
     Read the contents of a file and write them out.
public static  booleanreadlink(Env env, String path)
     The readlink always fails.
public static  Stringrealpath(Path path)
     Returns the actual path name.
public static  booleanrename(Env env, StringValue from, StringValue to)
    
public static  Valuerewind(Env env, BinaryInput is)
     Rewinds the stream.
public static  voidrewinddir(Env env, DirectoryValue dir)
    
public static  booleanrmdir(Env env, StringValue filename, Value context)
    
public static  Valuescandir(Env env, String fileName, int order, Value context)
    
public static  intset_file_buffer(Env env, BinaryOutput stream, int bufferSize)
     Sets the write buffer.
public static  Valuestat(Env env, StringValue filename)
    
static  ValuestatImpl(Env env, Path path)
    
public  booleansymlink(Env env, Path source, Path destination)
    
public static  Valuetempnam(Env env, Path dir, String prefix)
     Creates a temporary file.
public static  FileInputOutputtmpfile(Env env)
     Creates a temporary file.
public static  booleantouch(Path path, int time, int atime)
    
public static  intumask(Env env, int mask)
    
public static  booleanunlink(Env env, StringValue filename, Value context)
    

Field Detail
DIRECTORY_SEPARATOR
final public static String DIRECTORY_SEPARATOR(Code)



FILE_APPEND
final public static int FILE_APPEND(Code)



FILE_USE_INCLUDE_PATH
final public static int FILE_USE_INCLUDE_PATH(Code)



FNM_CASEFOLD
final public static int FNM_CASEFOLD(Code)



FNM_NOESCAPE
final public static int FNM_NOESCAPE(Code)



FNM_PATHNAME
final public static int FNM_PATHNAME(Code)



FNM_PERIOD
final public static int FNM_PERIOD(Code)



GLOB_BRACE
final public static int GLOB_BRACE(Code)



GLOB_ERR
final public static int GLOB_ERR(Code)



GLOB_MARK
final public static int GLOB_MARK(Code)



GLOB_NOCHECK
final public static int GLOB_NOCHECK(Code)



GLOB_NOESCAPE
final public static int GLOB_NOESCAPE(Code)



GLOB_NOSORT
final public static int GLOB_NOSORT(Code)



GLOB_ONLYDIR
final public static int GLOB_ONLYDIR(Code)



INI_ALLOW_URL_FOPEN
final static IniDefinition INI_ALLOW_URL_FOPEN(Code)



INI_AUTO_DETECT_LINE_ENDINGS
final static IniDefinition INI_AUTO_DETECT_LINE_ENDINGS(Code)



INI_DEFAULT_SOCKET_TIMEOUT
final static IniDefinition INI_DEFAULT_SOCKET_TIMEOUT(Code)



INI_FILE_UPLOADS
final static IniDefinition INI_FILE_UPLOADS(Code)



INI_FROM
final static IniDefinition INI_FROM(Code)



INI_UPLOAD_MAX_FILESIZE
final static IniDefinition INI_UPLOAD_MAX_FILESIZE(Code)



INI_UPLOAD_TMP_DIR
final static IniDefinition INI_UPLOAD_TMP_DIR(Code)



INI_USER_AGENT
final static IniDefinition INI_USER_AGENT(Code)



LOCK_EX
final public static int LOCK_EX(Code)



LOCK_NB
final public static int LOCK_NB(Code)



LOCK_SH
final public static int LOCK_SH(Code)



LOCK_UN
final public static int LOCK_UN(Code)



PATHINFO_BASENAME
final public static int PATHINFO_BASENAME(Code)



PATHINFO_DIRNAME
final public static int PATHINFO_DIRNAME(Code)



PATHINFO_EXTENSION
final public static int PATHINFO_EXTENSION(Code)



PATHINFO_FILENAME
final public static int PATHINFO_FILENAME(Code)



PATH_SEPARATOR
final public static String PATH_SEPARATOR(Code)



UPLOAD_ERR_CANT_WRITE
final public static int UPLOAD_ERR_CANT_WRITE(Code)



UPLOAD_ERR_EXTENSION
final public static int UPLOAD_ERR_EXTENSION(Code)



UPLOAD_ERR_FORM_SIZE
final public static int UPLOAD_ERR_FORM_SIZE(Code)



UPLOAD_ERR_INI_SIZE
final public static int UPLOAD_ERR_INI_SIZE(Code)



UPLOAD_ERR_NO_FILE
final public static int UPLOAD_ERR_NO_FILE(Code)



UPLOAD_ERR_NO_TMP_DIR
final public static int UPLOAD_ERR_NO_TMP_DIR(Code)



UPLOAD_ERR_OK
final public static int UPLOAD_ERR_OK(Code)



UPLOAD_ERR_PARTIAL
final public static int UPLOAD_ERR_PARTIAL(Code)





Method Detail
basename
public static Value basename(StringValue path, StringValue suffix)(Code)
Returns the base name of a string.



chdir
public static boolean chdir(Env env, Path path)(Code)
Changes the working directory
Parameters:
  path - the path to change to



chgrp
public static boolean chgrp(Env env, Path file, Value group)(Code)
Changes the group of the file.
Parameters:
  env - the PHP executing environment
Parameters:
  file - the file to change the group of
Parameters:
  group - the group id to change to



chmod
public static boolean chmod(Env env, Path file, int mode)(Code)
Changes the permissions of the file.
Parameters:
  env - the PHP executing environment
Parameters:
  file - the file to change the group of
Parameters:
  mode - the mode id to change to



chown
public static boolean chown(Env env, Path file, Value user)(Code)
Changes the ownership of the file.
Parameters:
  env - the PHP executing environment
Parameters:
  file - the file to change the group of
Parameters:
  user - the user id to change to



chroot
public static boolean chroot(Env env, Path path)(Code)
Changes the working directory, forming a virtual root
Parameters:
  path - the path to change to



clearstatcache
public static Value clearstatcache(Env env)(Code)
Clears the stat cache for the file
Parameters:
  env - the PHP executing environment



closedir
public static void closedir(Env env, DirectoryValue dirV)(Code)
Closes the directory
Parameters:
  dirV - the directory resource



copy
public static boolean copy(Env env, Path src, Path dst)(Code)
Copies a file to the destination.
Parameters:
  src - the source path
Parameters:
  dst - the destination path



dir
public static Directory dir(Env env, Path path)(Code)
Opens a directory
Parameters:
  path - the path to change to



dirname
public StringValue dirname(Env env, StringValue path)(Code)
Returns the directory name of a string.



disk_free_space
public static Value disk_free_space(Env env, Path directory)(Code)
Returns the free space for disk partition containing the directory
Parameters:
  directory - the disk directory



disk_total_space
public static Value disk_total_space(Env env, Path directory)(Code)
Returns the total space for disk partition containing the directory
Parameters:
  directory - the disk directory



diskfreespace
public static Value diskfreespace(Env env, Path directory)(Code)
Returns the total space for disk partition containing the directory
Parameters:
  directory - the disk directory



fclose
public static boolean fclose(Env env, BinaryStream s)(Code)
Closes a file.



feof
public static boolean feof(Env env, BinaryInput is)(Code)
Checks for the end of file.



fflush
public static boolean fflush(Env env, BinaryOutput os)(Code)
Flushes a file.



fgetc
public static Value fgetc(Env env, BinaryInput is)(Code)
Returns the next character as a byte



fgetcsv
public Value fgetcsv(Env env, BinaryInput is, int length, String delimiter, String enclosure)(Code)
Parses a comma-separated-value line from a file.
Parameters:
  file - the file to read
Parameters:
  length - the maximum line length
Parameters:
  delimiter - optional comma replacement
Parameters:
  enclosure - optional quote replacement



fgets
public static Value fgets(Env env, BinaryInput is, int length)(Code)
Returns the next line



fgetss
public static Value fgetss(Env env, BinaryInput is, int length, String allowedTags)(Code)
Returns the next line stripping tags



file
public static Value file(Env env, StringValue filename, boolean useIncludePath, Value context)(Code)
Parses the file, returning it in an array. Binary-safe.
Parameters:
  filename - the file's name
Parameters:
  useIncludePath - if 1, use the include path
Parameters:
  context - the resource context



file_exists
public static boolean file_exists(Path path)(Code)
Returns true if file exists
Parameters:
  path - the path to check



file_get_contents
public static StringValue file_get_contents(Env env, StringValue filename, boolean useIncludePath, Value context, long offset, long maxLen)(Code)
Parses the file, returning it as a string array.
Parameters:
  filename - the file's name
Parameters:
  useIncludePath - if true, use the include path
Parameters:
  context - the resource context



file_put_contents
public Value file_put_contents(Env env, StringValue filename, Value data, int flags, Value context)(Code)
Writes data to a file.



fileatime
public static Value fileatime(Env env, Path path)(Code)
Returns the file access time
Parameters:
  path - the path to check



filectime
public static Value filectime(Env env, Path path)(Code)
Returns the file create time
Parameters:
  path - the path to check



filegroup
public static Value filegroup(Env env, Path path)(Code)
Returns the file's group
Parameters:
  path - the path to check



fileinode
public static Value fileinode(Env env, Path path)(Code)
Returns the file's inocde
Parameters:
  path - the path to check



filemtime
public static Value filemtime(Env env, Path path)(Code)
Returns the file modified time
Parameters:
  path - the path to check



fileowner
public static Value fileowner(Env env, Path path)(Code)
Returns the file's owner
Parameters:
  path - the path to check



fileperms
public static Value fileperms(Env env, Path path)(Code)
Returns the file's permissions
Parameters:
  path - the path to check



filesize
public static Value filesize(Env env, Path path)(Code)
Returns the file's size
Parameters:
  path - the path to check



filetype
public static Value filetype(Env env, Path path)(Code)
Returns the file's type
Parameters:
  path - the path to check



flock
public static boolean flock(Env env, LockableStream fileV, int operation, Value wouldBlock)(Code)
Advisory locking
Parameters:
  fileV - the file handle
Parameters:
  operation - the locking operation
Parameters:
  wouldBlock - the resource context



fnmatch
public static boolean fnmatch(Env env, String pattern, String string, int flags)(Code)
Returns true if the given string matches the given glob pattern.



fopen
public static BinaryStream fopen(Env env, StringValue filename, String mode, boolean useIncludePath, Value context)(Code)
Opens a file.
Parameters:
  filename - the path to the file to open
Parameters:
  mode - the mode the file should be opened as.
Parameters:
  useIncludePath - if true, search the current include path



fpassthru
public Value fpassthru(Env env, BinaryInput is)(Code)
Output the filepointer data to the output stream.



fputcsv
public Value fputcsv(Env env, BinaryOutput os, ArrayValue value, StringValue delimiter, StringValue enclosure)(Code)
Parses a comma-separated-value line from a file.
Parameters:
  file - the file to read
Parameters:
  delimiter - optional comma replacement
Parameters:
  enclosure - optional quote replacement



fputs
public static Value fputs(Env env, BinaryOutput os, InputStream value, int length)(Code)
Writes a string to the file.



fread
public static Value fread(Env env, BinaryInput is, int length)(Code)
Reads content from a file.
Parameters:
  is - the file



fscanf
public static Value fscanf(Env env, BinaryInput is, StringValue format, Value[] args)(Code)
Reads and parses a line.



fseek
public static Value fseek(Env env, BinaryInput is, long offset, int whence)(Code)
Sets the current position.
Parameters:
  is - the stream to test 0 on success, -1 on error.



fstat
public static Value fstat(Env env, BinaryStream stream)(Code)
Returns the status of the given file pointer.



ftell
public static Value ftell(Env env, BinaryInput is)(Code)
Returns the current position.
Parameters:
  file - the stream to test position in file or FALSE on error.



ftruncate
public static boolean ftruncate(Env env, BinaryOutput handle, long size)(Code)
Truncates a file.



fwrite
public static Value fwrite(Env env, BinaryOutput os, InputStream value, int length)(Code)
Writes a string to the file.



getConstMap
public Map<String, Value> getConstMap()(Code)
Returns the constants defined by this module.



getIniDefinitions
public IniDefinitions getIniDefinitions()(Code)
Returns the default quercus.ini values.



getcwd
public static String getcwd(Env env)(Code)
Returns the current working directory. the current directory



glob
public static Value glob(Env env, StringValue pattern, int flags)(Code)
Matches all files with the given pattern.



is_dir
public static boolean is_dir(Path path)(Code)
Returns true if the path is a directory.
Parameters:
  path - the path to check



is_executable
public static boolean is_executable(Path path)(Code)
Returns true if the path is an executable file
Parameters:
  path - the path to check



is_file
public static boolean is_file(Path path)(Code)
Returns true if the path is a file.
Parameters:
  path - the path to check



is_link
public static boolean is_link(Env env, Path path)(Code)
Returns true if the path is a symbolic link
Parameters:
  path - the path to check



is_readable
public static boolean is_readable(Path path)(Code)
Returns true if the path is readable
Parameters:
  path - the path to check



is_uploaded_file
public static boolean is_uploaded_file(Env env, Path path)(Code)
Returns true for an uploaded file.
Parameters:
  path - the temp name of the uploaded file



is_writable
public static boolean is_writable(Path path)(Code)
Returns true if the path is writable
Parameters:
  path - the path to check



is_writeable
public static boolean is_writeable(Path path)(Code)
Returns true if the path is writable
Parameters:
  path - the path to check



link
public boolean link(Env env, Path source, Path destination)(Code)
Creates a hard link



linkinfo
public static long linkinfo(Env env, Path path)(Code)



lstat
public static Value lstat(Env env, StringValue filename)(Code)
Returns file statistics



mkdir
public static boolean mkdir(Env env, StringValue dirname, int mode, boolean recursive, Value context)(Code)
Makes the directory
Parameters:
  path - the directory to make



move_uploaded_file
public static boolean move_uploaded_file(Env env, Path src, Path dst)(Code)
Moves the uploaded file.
Parameters:
  path - the temp name of the uploaded file
Parameters:
  dst - the destination path



opendir
public static Value opendir(Env env, StringValue pathName, Value context)(Code)
Opens a directory
Parameters:
  pathName - the directory to open



parse_ini_file
public static Value parse_ini_file(Env env, Path path, boolean processSections)(Code)
Parses the ini file.



pathinfo
public static Value pathinfo(Env env, String path, Value optionsV)(Code)
Parses the path, splitting it into parts.



pclose
public static int pclose(Env env, BinaryStream stream)(Code)



popen
public static BinaryStream popen(Env env, String command, StringValue mode)(Code)



readdir
public static Value readdir(Env env, DirectoryValue dir)(Code)
Reads the next entry
Parameters:
  dirV - the directory resource



readfile
public Value readfile(Env env, StringValue filename, boolean useIncludePath, Value context)(Code)
Read the contents of a file and write them out.



readlink
public static boolean readlink(Env env, String path)(Code)
The readlink always fails.



realpath
public static String realpath(Path path)(Code)
Returns the actual path name.



rename
public static boolean rename(Env env, StringValue from, StringValue to)(Code)
Renames a file
Parameters:
  fromPath - the path to change to
Parameters:
  toPath - the path to change to



rewind
public static Value rewind(Env env, BinaryInput is)(Code)
Rewinds the stream.
Parameters:
  is - the file resource



rewinddir
public static void rewinddir(Env env, DirectoryValue dir)(Code)
Rewinds the directory listing
Parameters:
  dirV - the directory resource



rmdir
public static boolean rmdir(Env env, StringValue filename, Value context)(Code)
remove a directory



scandir
public static Value scandir(Env env, String fileName, int order, Value context)(Code)
Scan the directory
Parameters:
  fileName - the directory



set_file_buffer
public static int set_file_buffer(Env env, BinaryOutput stream, int bufferSize)(Code)
Sets the write buffer.



stat
public static Value stat(Env env, StringValue filename)(Code)
Returns file statistics



statImpl
static Value statImpl(Env env, Path path)(Code)



symlink
public boolean symlink(Env env, Path source, Path destination)(Code)
Creates a symlink



tempnam
public static Value tempnam(Env env, Path dir, String prefix)(Code)
Creates a temporary file.



tmpfile
public static FileInputOutput tmpfile(Env env)(Code)
Creates a temporary file.



touch
public static boolean touch(Path path, int time, int atime)(Code)
sets the time to the current time



umask
public static int umask(Env env, int mask)(Code)
umask call



unlink
public static boolean unlink(Env env, StringValue filename, Value context)(Code)
remove call



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.