java.io.Closeable
, java.io.Flushable
, java.lang.Appendable
, java.lang.AutoCloseable
public class SyslogWriter
extends java.io.Writer
Constructor | Description |
---|---|
SyslogWriter(java.lang.String syslogHost) |
Constructs a new instance of SyslogWriter.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
flush() |
|
void |
write(char[] buf,
int off,
int len) |
|
void |
write(java.lang.String string) |
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.Writer
java.io.IOException
public void write(java.lang.String string) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.Writer
Copyright 2000-2007 Apache Software Foundation.