mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1385
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12512 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
43c74186a9
commit
07caa3587a
@ -134,6 +134,15 @@ public final class ChatTranscripts {
|
||||
// We want to append near the end of the document as the last
|
||||
// child in the transcript.
|
||||
final String endTag = " </messages>\n</transcript>";
|
||||
|
||||
String line = raf.readLine();
|
||||
if(line.contains("</messages></transcript>"))
|
||||
{
|
||||
// replace the old one with the new one
|
||||
line = line.replace("</messages></transcript>",endTag);
|
||||
raf.write(line.getBytes("UTF-8"));
|
||||
}
|
||||
|
||||
builder.append(endTag);
|
||||
|
||||
raf.seek(transcriptFile.length() - endTag.length());
|
||||
|
||||
Reference in New Issue
Block a user