Java Thrift libraries no longer use specially defined UInt32 etc. classes
Summary: There was really no need for these now that we are getting rid of unsigned, they should all just use the builtin int and long types
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664741 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/src/transport/TSocket.java b/lib/java/src/transport/TSocket.java
index 2092f11..6b4fa3b 100644
--- a/lib/java/src/transport/TSocket.java
+++ b/lib/java/src/transport/TSocket.java
@@ -32,8 +32,8 @@
socket_ = socket;
if (isOpen()) {
try {
- inputStream_ = new BufferedInputStream(socket_.getInputStream());
- outputStream_ = new BufferedOutputStream(socket_.getOutputStream());
+ inputStream_ = new BufferedInputStream(socket_.getInputStream(), 1024);
+ outputStream_ = new BufferedOutputStream(socket_.getOutputStream(), 1024);
} catch (IOException iox) {
close();
throw new TTransportException(iox);
@@ -96,8 +96,8 @@
try {
socket_.connect(new InetSocketAddress(host_, port_));
- inputStream_ = new BufferedInputStream(socket_.getInputStream());
- outputStream_ = new BufferedOutputStream(socket_.getOutputStream());
+ inputStream_ = new BufferedInputStream(socket_.getInputStream(), 1024);
+ outputStream_ = new BufferedOutputStream(socket_.getOutputStream(), 1024);
} catch (IOException iox) {
close();
throw new TTransportException(iox);