public class SyslogWriter
extends java.io.Writer
| Modifier and Type | Field and Description |
|---|---|
private java.net.InetAddress |
address |
private java.net.DatagramSocket |
ds |
private int |
port |
(package private) int |
SYSLOG_PORT |
(package private) static java.lang.String |
syslogHost
Deprecated.
|
| Constructor and Description |
|---|
SyslogWriter(java.lang.String syslogHost)
Constructs a new instance of SyslogWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] buf,
int off,
int len) |
void |
write(java.lang.String string) |
final int SYSLOG_PORT
static java.lang.String syslogHost
private java.net.InetAddress address
private final int port
private java.net.DatagramSocket ds
public SyslogWriter(java.lang.String syslogHost)
syslogHost - host name, may not be null. A port
may be specified by following the name or IPv4 literal address with
a colon and a decimal port number. To specify a port with an IPv6
address, enclose the IPv6 address in square brackets before appending
the colon and decimal port number.public void write(char[] buf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void write(java.lang.String string)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic void flush()
flush in interface java.io.Flushableflush in class java.io.Writerpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writer