Java Doc for SmbNamedPipe.java in  » Groupware » hipergate » com » knowgate » jcifs » smb » 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 » Groupware » hipergate » com.knowgate.jcifs.smb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.knowgate.jcifs.smb.SmbFile
   com.knowgate.jcifs.smb.SmbNamedPipe

SmbNamedPipe
public class SmbNamedPipe extends SmbFile (Code)
This class will allow a Java program to read and write data to Named Pipes and Transact NamedPipes.

There are three Win32 function calls provided by the Windows SDK that are important in the context of using jCIFS. They are:

  • CallNamedPipe A message-type pipe call that opens, writes to, reads from, and closes the pipe in a single operation.
  • TransactNamedPipe A message-type pipe call that writes to and reads from an existing pipe descriptor in one operation.
  • CreateFile, ReadFile, WriteFile, and CloseFile A byte-type pipe can be opened, written to, read from and closed using the standard Win32 file operations.

The jCIFS API maps all of these operations into the standard Java XxxputStream interface. A special PIPE_TYPE flags is necessary to distinguish which type of Named Pipe behavior is desired.

SmbNamedPipe Constructor Examples
Code SampleDescription
 new SmbNamedPipe( "smb://server/IPC$/PIPE/foo",
 SmbNamedPipe.PIPE_TYPE_RDWR |
 SmbNamedPipe.PIPE_TYPE_CALL );
 
Open the Named Pipe foo for reading and writing. The pipe will behave like the CallNamedPipe interface.
 new SmbNamedPipe( "smb://server/IPC$/foo",
 SmbNamedPipe.PIPE_TYPE_RDWR |
 SmbNamedPipe.PIPE_TYPE_TRANSACT );
 
Open the Named Pipe foo for reading and writing. The pipe will behave like the TransactNamedPipe interface.
 new SmbNamedPipe( "smb://server/IPC$/foo",
 SmbNamedPipe.PIPE_TYPE_RDWR );
 
Open the Named Pipe foo for reading and writing. The pipe will behave as though the CreateFile, ReadFile, WriteFile, and CloseFile interface was being used.

See Using jCIFS to Connect to Win32 Named Pipes for a detailed description of how to use jCIFS with Win32 Named Pipe server processes.



Field Summary
final public static  intPIPE_TYPE_CALL
     Pipe operations should behave like the CallNamedPipe Win32 Named Pipe function.
final public static  intPIPE_TYPE_RDONLY
     The pipe should be opened read-only.
final public static  intPIPE_TYPE_RDWR
     The pipe should be opened for both reading and writing.
final public static  intPIPE_TYPE_TRANSACT
     Pipe operations should behave like the TransactNamedPipe Win32 Named Pipe function.
final public static  intPIPE_TYPE_WRONLY
     The pipe should be opened only for writing.
 InputStreampipeIn
    
 OutputStreampipeOut
    
 intpipeType
    

Constructor Summary
public  SmbNamedPipe(String url, int pipeType)
     Open the Named Pipe resource specified by the url parameter.
public  SmbNamedPipe(String url, int pipeType, NtlmPasswordAuthentication auth)
    
public  SmbNamedPipe(URL url, int pipeType, NtlmPasswordAuthentication auth)
    

Method Summary
public  InputStreamgetNamedPipeInputStream()
     Return the InputStream used to read information from this pipe instance.
public  OutputStreamgetNamedPipeOutputStream()
     Return the OutputStream used to write information to this pipe instance.

Field Detail
PIPE_TYPE_CALL
final public static int PIPE_TYPE_CALL(Code)
Pipe operations should behave like the CallNamedPipe Win32 Named Pipe function.



PIPE_TYPE_RDONLY
final public static int PIPE_TYPE_RDONLY(Code)
The pipe should be opened read-only.



PIPE_TYPE_RDWR
final public static int PIPE_TYPE_RDWR(Code)
The pipe should be opened for both reading and writing.



PIPE_TYPE_TRANSACT
final public static int PIPE_TYPE_TRANSACT(Code)
Pipe operations should behave like the TransactNamedPipe Win32 Named Pipe function.



PIPE_TYPE_WRONLY
final public static int PIPE_TYPE_WRONLY(Code)
The pipe should be opened only for writing.



pipeIn
InputStream pipeIn(Code)



pipeOut
OutputStream pipeOut(Code)



pipeType
int pipeType(Code)




Constructor Detail
SmbNamedPipe
public SmbNamedPipe(String url, int pipeType) throws MalformedURLException, UnknownHostException(Code)
Open the Named Pipe resource specified by the url parameter. The pipeType parameter should be at least one of the PIPE_TYPE flags combined with the bitwise OR operator |. See the examples listed above.



SmbNamedPipe
public SmbNamedPipe(String url, int pipeType, NtlmPasswordAuthentication auth) throws MalformedURLException, UnknownHostException(Code)



SmbNamedPipe
public SmbNamedPipe(URL url, int pipeType, NtlmPasswordAuthentication auth) throws MalformedURLException, UnknownHostException(Code)




Method Detail
getNamedPipeInputStream
public InputStream getNamedPipeInputStream() throws IOException(Code)
Return the InputStream used to read information from this pipe instance. Presumably data would first be written to the OutputStream associated with this Named Pipe instance although this is not a requirement (e.g. a read-only named pipe would write data to this stream on connection). Reading from this stream may block. Therefore it may be necessary that an addition thread be used to read and write to a Named Pipe.



getNamedPipeOutputStream
public OutputStream getNamedPipeOutputStream() throws IOException(Code)
Return the OutputStream used to write information to this pipe instance. The act of writing data to this stream will result in response data recieved in the InputStream associated with this Named Pipe instance (unless of course it does not elicite a response or the pipe is write-only).



Fields inherited from com.knowgate.jcifs.smb.SmbFile
final public static int ATTR_ARCHIVE(Code)(Java Doc)
final static int ATTR_COMPRESSED(Code)(Java Doc)
final public static int ATTR_DIRECTORY(Code)(Java Doc)
final static int ATTR_GET_MASK(Code)(Java Doc)
final public static int ATTR_HIDDEN(Code)(Java Doc)
final static int ATTR_NORMAL(Code)(Java Doc)
final public static int ATTR_READONLY(Code)(Java Doc)
final static int ATTR_SET_MASK(Code)(Java Doc)
final public static int ATTR_SYSTEM(Code)(Java Doc)
final static int ATTR_TEMPORARY(Code)(Java Doc)
final public static int ATTR_VOLUME(Code)(Java Doc)
final static int DEFAULT_ATTR_EXPIRATION_PERIOD(Code)(Java Doc)
final public static int FILE_NO_SHARE(Code)(Java Doc)
final public static int FILE_SHARE_DELETE(Code)(Java Doc)
final public static int FILE_SHARE_READ(Code)(Java Doc)
final public static int FILE_SHARE_WRITE(Code)(Java Doc)
final static int HASH_DOT(Code)(Java Doc)
final static int HASH_DOT_DOT(Code)(Java Doc)
final static int O_APPEND(Code)(Java Doc)
final static int O_CREAT(Code)(Java Doc)
final static int O_EXCL(Code)(Java Doc)
final static int O_RDONLY(Code)(Java Doc)
final static int O_RDWR(Code)(Java Doc)
final static int O_TRUNC(Code)(Java Doc)
final static int O_WRONLY(Code)(Java Doc)
final public static int TYPE_COMM(Code)(Java Doc)
final public static int TYPE_FILESYSTEM(Code)(Java Doc)
final public static int TYPE_NAMED_PIPE(Code)(Java Doc)
final public static int TYPE_PRINTER(Code)(Java Doc)
final public static int TYPE_SERVER(Code)(Java Doc)
final public static int TYPE_SHARE(Code)(Java Doc)
final public static int TYPE_WORKGROUP(Code)(Java Doc)
static long attrExpirationPeriod(Code)(Java Doc)
int fid(Code)(Java Doc)
boolean opened(Code)(Java Doc)
SmbTree tree(Code)(Java Doc)
int type(Code)(Java Doc)
String unc(Code)(Java Doc)

Methods inherited from com.knowgate.jcifs.smb.SmbFile
public boolean canRead() throws SmbException(Code)(Java Doc)
public boolean canWrite() throws SmbException(Code)(Java Doc)
void close(int f, long lastWriteTime) throws SmbException(Code)(Java Doc)
void close(long lastWriteTime) throws SmbException(Code)(Java Doc)
void close() throws SmbException(Code)(Java Doc)
public void connect() throws IOException(Code)(Java Doc)
void connect0() throws SmbException(Code)(Java Doc)
public void copyTo(SmbFile dest) throws SmbException(Code)(Java Doc)
void copyTo0(SmbFile dest, byte[][] b, int bsize, WriterThread w, SmbComReadAndX req, SmbComReadAndXResponse resp) throws SmbException(Code)(Java Doc)
public void createNewFile() throws SmbException(Code)(Java Doc)
public long createTime() throws SmbException(Code)(Java Doc)
public void delete() throws SmbException(Code)(Java Doc)
void delete(String fileName) throws SmbException(Code)(Java Doc)
void doFindFirstNext(ArrayList list, boolean files, String wildcard, int searchAttributes, SmbFilenameFilter fnf, SmbFileFilter ff) throws SmbException, UnknownHostException, MalformedURLException(Code)(Java Doc)
void doNetEnum(ArrayList list, boolean files, String wildcard, int searchAttributes, SmbFilenameFilter fnf, SmbFileFilter ff) throws SmbException, UnknownHostException, MalformedURLException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public boolean exists() throws SmbException(Code)(Java Doc)
UniAddress getAddress() throws UnknownHostException(Code)(Java Doc)
public int getAttributes() throws SmbException(Code)(Java Doc)
public String getCanonicalPath()(Code)(Java Doc)
public int getContentLength()(Code)(Java Doc)
public long getDate()(Code)(Java Doc)
public String getDfsPath() throws SmbException(Code)(Java Doc)
public long getDiskFreeSpace() throws SmbException(Code)(Java Doc)
public InputStream getInputStream() throws IOException(Code)(Java Doc)
public long getLastModified()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getParent()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
public String getServer()(Code)(Java Doc)
public String getShare()(Code)(Java Doc)
public int getType() throws SmbException(Code)(Java Doc)
public String getUncPath()(Code)(Java Doc)
String getUncPath0()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
boolean isConnected()(Code)(Java Doc)
public boolean isDirectory() throws SmbException(Code)(Java Doc)
public boolean isFile() throws SmbException(Code)(Java Doc)
public boolean isHidden() throws SmbException(Code)(Java Doc)
boolean isOpen()(Code)(Java Doc)
boolean isWorkgroup0() throws UnknownHostException(Code)(Java Doc)
public long lastModified() throws SmbException(Code)(Java Doc)
public long length() throws SmbException(Code)(Java Doc)
public String[] list() throws SmbException(Code)(Java Doc)
public String[] list(SmbFilenameFilter filter) throws SmbException(Code)(Java Doc)
String[] list(String wildcard, int searchAttributes, SmbFilenameFilter fnf, SmbFileFilter ff) throws SmbException(Code)(Java Doc)
public SmbFile[] listFiles() throws SmbException(Code)(Java Doc)
public SmbFile[] listFiles(String wildcard) throws SmbException(Code)(Java Doc)
public SmbFile[] listFiles(SmbFilenameFilter filter) throws SmbException(Code)(Java Doc)
public SmbFile[] listFiles(SmbFileFilter filter) throws SmbException(Code)(Java Doc)
SmbFile[] listFiles(String wildcard, int searchAttributes, SmbFilenameFilter fnf, SmbFileFilter ff) throws SmbException(Code)(Java Doc)
public void mkdir() throws SmbException(Code)(Java Doc)
public void mkdirs() throws SmbException(Code)(Java Doc)
void open(int flags, int attrs, int options) throws SmbException(Code)(Java Doc)
int open0(int flags, int attrs, int options) throws SmbException(Code)(Java Doc)
static String queryLookup(String query, String param)(Code)(Java Doc)
Info queryPath(String path, int infoLevel) throws SmbException(Code)(Java Doc)
public void renameTo(SmbFile dest) throws SmbException(Code)(Java Doc)
void send(ServerMessageBlock request, ServerMessageBlock response) throws SmbException(Code)(Java Doc)
void sendTransaction(SmbComTransaction request, SmbComTransactionResponse response) throws SmbException(Code)(Java Doc)
public void setAttributes(int attrs) throws SmbException(Code)(Java Doc)
public void setCreateTime(long time) throws SmbException(Code)(Java Doc)
public void setLastModified(long time) throws SmbException(Code)(Java Doc)
void setPathInformation(int attrs, long ctime, long mtime) throws SmbException(Code)(Java Doc)
public void setReadOnly() throws SmbException(Code)(Java Doc)
public void setReadWrite() throws SmbException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public URL toURL() throws MalformedURLException(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.