提交 d44b29ea authored 作者: noelgrandin's avatar noelgrandin

Issue 482: class LobStorageBackend$LobInputStream does not override method int…

Issue 482: class LobStorageBackend$LobInputStream does not override method int avalaible() from InputStream
上级 82a2a486
...@@ -50,6 +50,7 @@ Change Log ...@@ -50,6 +50,7 @@ Change Log
to cope with databases with very high transaction rates. to cope with databases with very high transaction rates.
</li><li>Fix NPE when attempting to add foreign key reference to Table View. </li><li>Fix NPE when attempting to add foreign key reference to Table View.
</li><li>Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy. </li><li>Add sufficient ClientInfo support to our javax.sql.Connection implementation to make WebSphere happy.
</li><li>Issue 482: class LobStorageBackend$LobInputStream does not override method int avalaible() from InputStream
</li></ul> </li></ul>
<h2>Version 1.3.172 (2013-05-25)</h2> <h2>Version 1.3.172 (2013-05-25)</h2>
......
...@@ -668,6 +668,14 @@ public class LobStorageBackend implements LobStorageInterface { ...@@ -668,6 +668,14 @@ public class LobStorageBackend implements LobStorageInterface {
return 0; return 0;
} }
@Override
public int available() throws IOException {
if (length > Integer.MAX_VALUE) {
return Integer.MAX_VALUE;
}
return (int) length;
}
@Override @Override
public int read(byte[] buff) throws IOException { public int read(byte[] buff) throws IOException {
return readFully(buff, 0, buff.length); return readFully(buff, 0, buff.length);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论