Custom BufferedWriter implementation without newLine() 84/19684/2
authorMaros Marsalek <mmarsale@cisco.com>
Fri, 24 Apr 2015 09:02:45 +0000 (11:02 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 12 May 2015 08:20:46 +0000 (08:20 +0000)
commitc012c62bcc73ad02727fbab14ab5e24ae73e11e0
tree39760303b75280157798e0de5147100c5a0ff2d1
parent000856aa55b1147ab46e69288516b525c278aef2
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