Mercurial > jhg
diff src/org/tmatesoft/hg/util/ByteChannel.java @ 148:1a7a9a20e1f9
Exceptions, javadoc. Initial cancel and progress support
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 23 Feb 2011 22:36:28 +0100 |
parents | 7567f4a42fe5 |
children |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/ByteChannel.java Tue Feb 22 15:49:26 2011 +0100 +++ b/src/org/tmatesoft/hg/util/ByteChannel.java Wed Feb 23 22:36:28 2011 +0100 @@ -16,6 +16,7 @@ */ package org.tmatesoft.hg.util; +import java.io.IOException; import java.nio.ByteBuffer; /** @@ -30,5 +31,5 @@ // XXX does int return value makes any sense given buffer keeps its read state // not clear what retvalue should be in case some filtering happened inside write - i.e. return // number of bytes consumed in - int write(ByteBuffer buffer) throws Exception /*FIXME Exception type*/; + int write(ByteBuffer buffer) throws IOException, CancelledException; }