Custom BufferedWriter implementation without newLine() 87/18987/4
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)
commit5273304e9f607a15c1c17aca1c05d7aac2c0260e
tree5107a9fe4134e78a5ee39738277780b9e015a289
parenta65e71f04e96f7492dcdd8b3c6b427fa7c725c3b
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