public class SmbOutputStream extends OutputStream
| Constructor and Description |
|---|
SmbOutputStream(com.hierynomus.smbj.share.File file,
boolean appendContent)
Create a new decorated output stream that respects the reference counting close mechanism of the file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] values)
Write a byte buffer to the SMB file.
|
void |
write(byte[] values,
int offset,
int length)
Write a byte buffer to the SMB file at a given offset with a given size.
|
void |
write(int value)
Write a single value to the SMB file.
|
public SmbOutputStream(com.hierynomus.smbj.share.File file,
boolean appendContent)
file - File that will provide the output streamappendContent - Append the content to the current file or overwrite itpublic void write(int value)
throws IOException
write in class OutputStreamvalue - Value to write or appendIOException - Exception in case of an IO/network problempublic void write(byte[] values)
throws IOException
write in class OutputStreamvalues - Values to write or appendIOException - Exception in case of an IO/network problempublic void write(byte[] values,
int offset,
int length)
throws IOException
write in class OutputStreamvalues - Values to writeoffset - Offset in the filelength - Length of the values to writeIOException - Exception in case of an IO/network problempublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2022. All rights reserved.