From 1939acb5eeca2792e93a0e236ed2f4a60b4d4008 Mon Sep 17 00:00:00 2001 From: ?? ? <ulysseskao@ximple.com.tw> Date: Wed, 25 Jun 2008 19:24:44 +0800 Subject: [PATCH] update for EOFM-127 --- xdgnjobs/ximple-dgnio/src/main/java/com/ximple/io/dgn7/TextElement.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/xdgnjobs/ximple-dgnio/src/main/java/com/ximple/io/dgn7/TextElement.java b/xdgnjobs/ximple-dgnio/src/main/java/com/ximple/io/dgn7/TextElement.java index f9d9cd5..79ca5eb 100644 --- a/xdgnjobs/ximple-dgnio/src/main/java/com/ximple/io/dgn7/TextElement.java +++ b/xdgnjobs/ximple-dgnio/src/main/java/com/ximple/io/dgn7/TextElement.java @@ -312,6 +312,19 @@ return new Coordinate(dstPt[0], dstPt[1]); } + public Object clone() throws CloneNotSupportedException + { + int pos = this.rawBuffer.position(); + this.rawBuffer.position(0); + byte[] rawBytes = this.rawBuffer.array(); + byte[] otherRaw = new byte[rawBytes.length]; + System.arraycopy(rawBytes, 0, otherRaw, 0, rawBytes.length); + this.rawBuffer.position(pos); + + TextElement other = new TextElement(otherRaw); + return other; + } + public static class ElementHandler extends Element.ElementHandler { private static ElementHandler instance = null; -- Gitblit v0.0.0-SNAPSHOT