Skip to content

Commit e65fa1d

Browse files
committed
added core/ module
1 parent 5d482b3 commit e65fa1d

File tree

346 files changed

+3414
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

346 files changed

+3414
-3
lines changed

CHANGES.txt renamed to core/CHANGES.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
Release 0.6.8 - 20XX/XX/XX
1+
Release 0.6.8 - 2013/08/17
22
BUG FIXES
33
Replaces method calls of LinkedList#peek{First,Last}() into get{First,Last}() within LinkedBufferInput class (pull request #18)
4-
Make encoding byte[][] work correctly (pull request #24)
4+
Makes encoding byte[][] work correctly (pull request #24)
55
Ports SimpleImmutableEntry for Android2.2 or below (pull request #27)
6+
Fixes to check upper bound and lower bound of IntAccept#acceptInteger(long) correctly (pull request #43)
67

78
IMPROVEMENTS
89
MSGPACK-83 Gracefully handling new enum value with OrdinalEnum (pull request #26)
10+
Refactors some jar dependencies for Android
11+
Adds MessagePack#read(byte[] bytes, int off, int len, Class<T> c)
12+
Changes README format to Markdown
13+
Supports maven-findbugs-plugin
914

1015
Release 0.6.7 - 2012/12/09
1116
NEW FEATURES
File renamed without changes.

core/pom.xml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.msgpack</groupId>
6+
<artifactId>msgpack</artifactId>
7+
<version>0.7.0-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>MessagePack for Java</name>
11+
<description>MessagePack for Java</description>
12+
<url>http://msgpack.org/</url>
13+
14+
<parent>
15+
<groupId>org.sonatype.oss</groupId>
16+
<artifactId>oss-parent</artifactId>
17+
<version>7</version>
18+
</parent>
19+
20+
<licenses>
21+
<license>
22+
<name>The Apache Software License, Version 2.0</name>
23+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
27+
28+
<scm>
29+
<connection>scm:git:git://github.com/msgpack/msgpack-java.git</connection>
30+
<developerConnection>scm:git:git@github.com:msgpack/msgpack-java.git</developerConnection>
31+
<url>scm:git:git://github.com/msgpack/msgpack-java.git</url>
32+
</scm>
33+
34+
<issueManagement>
35+
<system>GitHub</system>
36+
<url>https://github.com/msgpack/msgpack-java/issues</url>
37+
</issueManagement>
38+
39+
<dependencies>
40+
<dependency>
41+
<groupId>junit</groupId>
42+
<artifactId>junit</artifactId>
43+
<version>4.8.2</version>
44+
<scope>test</scope>
45+
</dependency>
46+
47+
<dependency>
48+
<groupId>org.mockito</groupId>
49+
<artifactId>mockito-core</artifactId>
50+
<version>1.9.5</version>
51+
<scope>test</scope>
52+
</dependency>
53+
</dependencies>
54+
55+
<build>
56+
<plugins>
57+
<plugin>
58+
<artifactId>maven-compiler-plugin</artifactId>
59+
<version>3.1</version>
60+
<configuration>
61+
<source>1.6</source>
62+
<target>1.6</target>
63+
<encoding>UTF-8</encoding>
64+
<compilerArgs>
65+
<arg>-Xlint:unchecked</arg>
66+
</compilerArgs>
67+
</configuration>
68+
</plugin>
69+
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-surefire-plugin</artifactId>
73+
<version>2.15</version>
74+
<configuration>
75+
<argLine>-Xmx512M</argLine>
76+
</configuration>
77+
</plugin>
78+
79+
<plugin>
80+
<artifactId>maven-eclipse-plugin</artifactId>
81+
<version>2.9</version>
82+
</plugin>
83+
</plugins>
84+
</build>
85+
86+
</project>

src/main/java/org/msgpack/MessageTypeException.java renamed to core/src/main/java/org/msgpack/MessageTypeException.java

File renamed without changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Copyright (C) 2009-2013 FURUHASHI Sadayuki
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
package org.msgpack.packer;
19+
20+
import java.math.BigInteger;
21+
import java.io.IOException;
22+
import java.io.Closeable;
23+
import java.io.Flushable;
24+
import java.nio.ByteBuffer;
25+
26+
public interface BufferPacker extends Packer {
27+
public int getSize();
28+
29+
public byte[] toByteArray();
30+
31+
public void clear();
32+
}
33+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Copyright (C) 2009-2013 FURUHASHI Sadayuki
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
package org.msgpack.packer;
19+
20+
public class MessageBufferPacker /*extends MessagePacker implements BufferPacker*/ {
21+
// TODO
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Copyright (C) 2009-2013 FURUHASHI Sadayuki
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
package org.msgpack.packer;
19+
20+
public class MessagePacker /*implements Packer*/ {
21+
// TODO
22+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Copyright (C) 2009-2013 FURUHASHI Sadayuki
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
package org.msgpack.packer;
19+
20+
import java.math.BigInteger;
21+
import java.io.IOException;
22+
import java.io.Closeable;
23+
import java.io.Flushable;
24+
import java.nio.ByteBuffer;
25+
26+
/**
27+
* Packer is an interface to serialize objects.
28+
*/
29+
public interface Packer extends Closeable, Flushable {
30+
public Packer writeBoolean(boolean o) throws IOException;
31+
32+
public Packer writeByte(byte o) throws IOException;
33+
34+
public Packer writeShort(short o) throws IOException;
35+
36+
public Packer writeInt(int o) throws IOException;
37+
38+
public Packer writeLong(long o) throws IOException;
39+
40+
public Packer writeBigInteger(BigInteger o) throws IOException;
41+
42+
public Packer writeFloat(float o) throws IOException;
43+
44+
public Packer writeDouble(double o) throws IOException;
45+
46+
public Packer writeByteArray(byte[] o) throws IOException;
47+
48+
public Packer writeByteArray(byte[] o, int off, int len) throws IOException;
49+
50+
public Packer writeByteBuffer(ByteBuffer o) throws IOException;
51+
52+
public Packer writeString(String o) throws IOException;
53+
54+
public Packer writeNil() throws IOException;
55+
56+
public Packer writeArrayHeader(int size) throws IOException;
57+
58+
public Packer writeMapHeader(int size) throws IOException;
59+
60+
public void reset();
61+
}
62+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Copyright (C) 2009-2013 FURUHASHI Sadayuki
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
package org.msgpack.packer;
19+
20+
import java.io.IOException;
21+
import java.io.Closeable;
22+
import java.io.Flushable;
23+
import java.nio.ByteBuffer;
24+
25+
public interface PackerChannel extends Closeable, Flushable {
26+
public void writeByteArray(byte[] b, int off, int len) throws IOException;
27+
28+
public void writeByteBuffer(ByteBuffer bb) throws IOException;
29+
30+
public void writeByte(byte v) throws IOException;
31+
32+
public void writeShort(short v) throws IOException;
33+
34+
public void writeInt(int v) throws IOException;
35+
36+
public void writeLong(long v) throws IOException;
37+
38+
public void writeFloat(float v) throws IOException;
39+
40+
public void writeDouble(double v) throws IOException;
41+
42+
public void writeByteAndByte(byte b, byte v) throws IOException;
43+
44+
public void writeByteAndShort(byte b, short v) throws IOException;
45+
46+
public void writeByteAndInt(byte b, int v) throws IOException;
47+
48+
public void writeByteAndLong(byte b, long v) throws IOException;
49+
50+
public void writeByteAndFloat(byte b, float v) throws IOException;
51+
52+
public void writeByteAndDouble(byte b, double v) throws IOException;
53+
}
54+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// MessagePack for Java
3+
//
4+
// Copyright (C) 2009-2013 FURUHASHI Sadayuki
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
package org.msgpack.unpacker;
19+
20+
public class MessageUnpacker /*implements Unpacker*/ {
21+
// TODO
22+
}
23+

0 commit comments

Comments
 (0)