org.dcm4che2.audit.log4j.helpers
Class SyslogWriter
java.lang.Object
   java.io.Writer
java.io.Writer
       org.dcm4che2.audit.log4j.helpers.SyslogWriter
org.dcm4che2.audit.log4j.helpers.SyslogWriter
- All Implemented Interfaces: 
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
- public class SyslogWriter 
- extends java.io.Writer
SyslogWriter is a wrapper around the java.net.DatagramSocket class
   so that it behaves like a java.io.Writer.
- Since:
- 0.7.3
 
| Fields inherited from class java.io.Writer | 
| lock | 
 
| Constructor Summary | 
| SyslogWriter(java.lang.String syslogHost,
             java.lang.String encoding)Constructs a new instance of SyslogWriter.
 | 
 
| Method Summary | 
|  void | close()Closes the datagram socket.
 | 
|  void | flush()Sends the pending data.
 | 
|  void | reset()
 | 
|  void | write(char c)
 | 
|  void | write(char[] charArray,
      int offset,
      int len)
 | 
|  void | write(java.lang.String str)
 | 
 
| Methods inherited from class java.io.Writer | 
| append, append, append, write, write, write | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SyslogWriter
public SyslogWriter(java.lang.String syslogHost,
                    java.lang.String encoding)
- Constructs a new instance of SyslogWriter.
 
- Parameters:
- 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.
 
write
public void write(char c)
- 
 
write
public void write(char[] charArray,
                  int offset,
                  int len)
- 
- Specified by:
- writein class- java.io.Writer
 
- 
 
write
public void write(java.lang.String str)
- 
- Overrides:
- writein class- java.io.Writer
 
- 
 
flush
public void flush()
           throws java.io.IOException
- Sends the pending data.
 
- 
- Specified by:
- flushin interface- java.io.Flushable
- Specified by:
- flushin class- java.io.Writer
 
- 
- Throws:
- java.io.IOException
 
reset
public void reset()
- 
 
close
public void close()
- Closes the datagram socket.
 
- 
- Specified by:
- closein interface- java.io.Closeable
- Specified by:
- closein class- java.io.Writer
 
- 
 
Copyright © 2011 dcm4che. All Rights Reserved.