public class SyslogOutputStream extends OutputStream
DatagramSocket class so that it
behaves like an OutputStream.| Constructor and Description |
|---|
SyslogOutputStream(String syslogHost,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
int |
getPort() |
void |
write(byte[] byteArray,
int offset,
int len) |
void |
write(int b) |
writepublic SyslogOutputStream(String syslogHost, int port) throws UnknownHostException, SocketException
UnknownHostExceptionSocketExceptionpublic void write(byte[] byteArray,
int offset,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic int getPort()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2005–2021 QOS.ch. All rights reserved.