optimize FileWriteOutBytes to avoid high sys cpu -- remove IOException in writeOutBytes.size

This commit is contained in:
huanghui.bigrey 2020-04-18 21:23:29 +08:00
parent 149e08c091
commit 965f742148
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public abstract class WriteOutBytes extends OutputStream implements WritableByte
/**
* Returns the number of bytes written to this WriteOutBytes so far.
*/
public abstract long size() throws IOException;
public abstract long size();
/**
* Takes all bytes that are written to this WriteOutBytes so far and writes them into the given channel.