Skip to content

Commit 6e01b68

Browse files
committed
optimized unpacker buffer
1 parent 1751ba3 commit 6e01b68

13 files changed

+689
-357
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
package org.msgpack.core;
17+
18+
public class MessageInsufficientBufferException
19+
extends MessagePackException
20+
{
21+
public MessageInsufficientBufferException()
22+
{
23+
super();
24+
}
25+
26+
public MessageInsufficientBufferException(String message)
27+
{
28+
super(message);
29+
}
30+
31+
public MessageInsufficientBufferException(Throwable cause)
32+
{
33+
super(cause);
34+
}
35+
36+
public MessageInsufficientBufferException(String message, Throwable cause)
37+
{
38+
super(message, cause);
39+
}
40+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
package org.msgpack.core;
17+
18+
/**
19+
* Thrown when the input message pack format is invalid
20+
*/
21+
public class MessageNeverUsedFormatException
22+
extends MessageFormatException
23+
{
24+
public MessageNeverUsedFormatException(Throwable e)
25+
{
26+
super(e);
27+
}
28+
29+
public MessageNeverUsedFormatException(String message)
30+
{
31+
super(message);
32+
}
33+
34+
public MessageNeverUsedFormatException(String message, Throwable cause)
35+
{
36+
super(message, cause);
37+
}
38+
}

0 commit comments

Comments
 (0)