Author: shawkins
Date: 2012-04-20 10:50:45 -0400 (Fri, 20 Apr 2012)
New Revision: 4023
Modified:
branches/8.0.x/client/src/main/java/org/teiid/netty/handler/codec/serialization/ObjectDecoderInputStream.java
Log:
TEIID-2008 allowing the maxObejctSize to be settable
Modified:
branches/8.0.x/client/src/main/java/org/teiid/netty/handler/codec/serialization/ObjectDecoderInputStream.java
===================================================================
---
branches/8.0.x/client/src/main/java/org/teiid/netty/handler/codec/serialization/ObjectDecoderInputStream.java 2012-04-19
18:05:03 UTC (rev 4022)
+++
branches/8.0.x/client/src/main/java/org/teiid/netty/handler/codec/serialization/ObjectDecoderInputStream.java 2012-04-20
14:50:45 UTC (rev 4023)
@@ -22,24 +22,13 @@
*/
package org.teiid.netty.handler.codec.serialization;
-import java.io.BufferedInputStream;
-import java.io.BufferedOutputStream;
-import java.io.ByteArrayInputStream;
-import java.io.EOFException;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.ObjectInput;
-import java.io.ObjectInputStream;
-import java.io.OutputStream;
-import java.io.StreamCorruptedException;
+import java.io.*;
import java.util.List;
import org.teiid.core.types.InputStreamFactory;
import org.teiid.core.types.InputStreamFactory.StreamFactoryReference;
import org.teiid.core.util.ExternalizeUtil;
+import org.teiid.jdbc.JDBCPlugin;
/**
@@ -83,8 +72,7 @@
throw new StreamCorruptedException("invalid data length: " +
dataLen); //$NON-NLS-1$
}
if (dataLen > maxObjectSize) {
- throw new StreamCorruptedException(
- "data length too big: " + dataLen + " (max: " +
maxObjectSize + ')'); //$NON-NLS-1$ //$NON-NLS-2$
+ throw new
StreamCorruptedException(JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20028, dataLen,
maxObjectSize));
}
}
fillBuffer();
Show replies by date