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.Writer
java.io.IOException
public void write(java.lang.String string) throws java.io.IOException
write
在类中 java.io.Writer
java.io.IOException
public void flush()
flush
在接口中 java.io.Flushable
flush
在类中 java.io.Writer
public void close()
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
close
在类中 java.io.Writer