Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private static void writeTextType(final ByteSequence contents,
final ActiveMQBuffer body) throws IOException {
InputStream tis = new ByteArrayInputStream(contents);
if (messageCompressed) {
tis = new InflaterInputStream(tis);
tis = MarshallingSupport.createInflaterInputStream(Integer.MAX_VALUE, tis);
}
DataInputStream tdataIn = new DataInputStream(tis);
String text = MarshallingSupport.readUTF8(tdataIn);
Expand All @@ -243,7 +243,7 @@ private static void writeMapType(final ByteSequence contents,
final ActiveMQBuffer body) throws IOException {
InputStream mis = new ByteArrayInputStream(contents);
if (messageCompressed) {
mis = new InflaterInputStream(mis);
mis = MarshallingSupport.createInflaterInputStream(Integer.MAX_VALUE, mis);
}
DataInputStream mdataIn = new DataInputStream(mis);
Map<String, Object> map = MarshallingSupport.unmarshalPrimitiveMap(mdataIn);
Expand Down Expand Up @@ -282,7 +282,7 @@ private static void writeStreamType(final ByteSequence contents,
final ActiveMQBuffer body) throws IOException {
InputStream sis = new ByteArrayInputStream(contents);
if (messageCompressed) {
sis = new InflaterInputStream(sis);
sis = MarshallingSupport.createInflaterInputStream(Integer.MAX_VALUE, sis);
}
DataInputStream sdis = new DataInputStream(sis);
int stype = sdis.read();
Expand Down
Loading