jcifs.smb
Class SmbFileOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--jcifs.smb.SmbFileOutputStream
- public class SmbFileOutputStream
- extends OutputStream
This OutputStream can write bytes to a file on an SMB file server.
Method Summary |
void |
close()
Closes this file output stream and releases any system
resources associated with this stream. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this
file output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at
offset off to this file output stream. |
void |
write(int b)
Writes the specified byte to this file output stream. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SmbFileOutputStream
public SmbFileOutputStream(String url)
throws IOException
- Creates an
OutputStream
for writing to a file
on an SMB server addressed by the URL parameter. See SmbFile
for a detailed description and examples of
the smb URL syntax.
SmbFileOutputStream
public SmbFileOutputStream(SmbFile file)
throws IOException
- Creates an
OutputStream
for writing to a file
on an SMB server represented by the SmbFile parameter.
SmbFileOutputStream
public SmbFileOutputStream(String url,
boolean append)
throws IOException
- Creates an
OutputStream
for writing to a file
on an SMB server addressed by the URL parameter. See SmbFile
for a detailed description and examples of
the smb URL syntax. If the second argument is true, then bytes
will be written to the end of the file rather than the beginning.
SmbFileOutputStream
public SmbFileOutputStream(SmbFile file,
boolean append)
throws IOException
close
public void close()
throws IOException
- Closes this file output stream and releases any system
resources associated with this stream.
- Overrides:
- close in class OutputStream
write
public void write(int b)
throws IOException
- Writes the specified byte to this file output stream.
- Overrides:
- write in class OutputStream
write
public void write(byte[] b)
throws IOException
- Writes b.length bytes from the specified byte array to this
file output stream.
- Overrides:
- write in class OutputStream
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Writes len bytes from the specified byte array starting at
offset off to this file output stream.
- Overrides:
- write in class OutputStream