From b3364fcce7dcb3ab01a7f0c1ae882dae4a86191b Mon Sep 17 00:00:00 2001 From: Derek DeMoro Date: Wed, 8 Feb 2006 04:39:27 +0000 Subject: [PATCH] Added getAmountWritten. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3407 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/filetransfer/FileTransfer.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smackx/filetransfer/FileTransfer.java b/source/org/jivesoftware/smackx/filetransfer/FileTransfer.java index 0cd5b3227..ac5eaebbb 100644 --- a/source/org/jivesoftware/smackx/filetransfer/FileTransfer.java +++ b/source/org/jivesoftware/smackx/filetransfer/FileTransfer.java @@ -285,7 +285,15 @@ public abstract class FileTransfer { public static final Status CANCLED = new Status(); } - public static class Error { + /** + * Return the length of bytes written out to the stream. + * @return the amount in bytes written out. + */ + public long getAmountWritten(){ + return amountWritten; + } + + public static class Error { /** * No error */