Custom BufferedWriter implementation without newLine()
authorMaros Marsalek <mmarsale@cisco.com>
Fri, 24 Apr 2015 09:02:45 +0000 (11:02 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Wed, 6 May 2015 08:06:41 +0000 (10:06 +0200)
commite231b53145eecc49d2f655e3800b6986416a4f64
treec44dab8631be220e32433e8845e0246bd1786db8
parent7dd426f909ca4442fe28d0b83a114a463d23f468
Custom BufferedWriter implementation without newLine()

This BufferedWriter does not provide newLine() method and does not read the
line.separator property via AccessController when its initialized. Whithout this
expensive call, its allocation is much faster. Used in netconf message encoder
to make the netconf serialization faster.

Change-Id: I88a65c7a82ff7c44b9ad3a3adfe7d7482a5fdc70
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/netconf/netconf-netty-util/src/main/java/org/opendaylight/controller/netconf/nettyutil/handler/BufferedWriter.java [new file with mode: 0644]
opendaylight/netconf/netconf-netty-util/src/main/java/org/opendaylight/controller/netconf/nettyutil/handler/NetconfMessageToXMLEncoder.java