public class SyslogWriter
extends java.io.Writer
| 构造器和说明 |
|---|
SyslogWriter(java.lang.String syslogHost)
Constructs a new instance of SyslogWriter.
|
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 在类中 java.io.Writerjava.io.IOExceptionpublic void write(java.lang.String string)
throws java.io.IOException
write 在类中 java.io.Writerjava.io.IOExceptionpublic void flush()
flush 在接口中 java.io.Flushableflush 在类中 java.io.Writerpublic void close()
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.Writer