diff --git a/java/src/main/java/org/msgpack/Templates.java b/java/src/main/java/org/msgpack/Templates.java index 4972670e..f268fa0b 100644 --- a/java/src/main/java/org/msgpack/Templates.java +++ b/java/src/main/java/org/msgpack/Templates.java @@ -1,7 +1,7 @@ // // MessagePack for Java // -// Copyright (C) 2009-2010 FURUHASHI Sadayuki +// Copyright (C) 2009-2011 FURUHASHI Sadayuki // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -76,6 +76,11 @@ public class Templates { return TBigInteger; } + public static final Template TBigDecimal = BigDecimalTemplate.getInstance(); + public static Template tBigDecimal() { + return TBigDecimal; + } + public static final Template TFloat = FloatTemplate.getInstance(); public static Template tFloat() { return TFloat; @@ -105,5 +110,10 @@ public class Templates { public static Template tByteBuffer() { return TByteBuffer; } + + public static final Template TDate = DateTemplate.getInstance(); + public static Template tDate() { + return TDate; + } } diff --git a/java/src/main/java/org/msgpack/template/BigDecimalTemplate.java b/java/src/main/java/org/msgpack/template/BigDecimalTemplate.java index 6c1a6f9e..e8265a5d 100644 --- a/java/src/main/java/org/msgpack/template/BigDecimalTemplate.java +++ b/java/src/main/java/org/msgpack/template/BigDecimalTemplate.java @@ -1,3 +1,20 @@ +// +// MessagePack for Java +// +// Copyright (C) 2009-2011 FURUHASHI Sadayuki +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package org.msgpack.template; import java.io.IOException; diff --git a/java/src/main/java/org/msgpack/template/DateTemplate.java b/java/src/main/java/org/msgpack/template/DateTemplate.java index 95d155ec..26adde68 100644 --- a/java/src/main/java/org/msgpack/template/DateTemplate.java +++ b/java/src/main/java/org/msgpack/template/DateTemplate.java @@ -1,3 +1,20 @@ +// +// MessagePack for Java +// +// Copyright (C) 2009-2011 FURUHASHI Sadayuki +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// package org.msgpack.template; import java.io.IOException;