From bf5b435d2afae235fa641acd3f68709712963eea Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Sun, 25 Mar 2012 12:18:40 -0700 Subject: [PATCH] More headers. --- .../java/ch/spacebase/opennbt/NBTIOUtils.java | 37 ++++++++++++++++++- .../opennbt/utils/DoubleIntHashMap.java | 37 +++++++++++++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/spacebase/opennbt/NBTIOUtils.java b/src/main/java/ch/spacebase/opennbt/NBTIOUtils.java index 905be1c..f386a5c 100644 --- a/src/main/java/ch/spacebase/opennbt/NBTIOUtils.java +++ b/src/main/java/ch/spacebase/opennbt/NBTIOUtils.java @@ -12,8 +12,43 @@ import ch.spacebase.opennbt.stream.NBTInputStream; import ch.spacebase.opennbt.stream.NBTOutputStream; import ch.spacebase.opennbt.tag.Tag; +/* + * OpenNBT License + * + * JNBT Copyright (c) 2010 Graham Edgecombe + * OpenNBT Copyright(c) 2012 Steveice10 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of the JNBT team nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ - +/** + * A utility for reading and writing NBTs to/from files. + */ public class NBTIOUtils { public static List loadNBT(File file) { diff --git a/src/main/java/ch/spacebase/opennbt/utils/DoubleIntHashMap.java b/src/main/java/ch/spacebase/opennbt/utils/DoubleIntHashMap.java index bdef799..fc30f3d 100644 --- a/src/main/java/ch/spacebase/opennbt/utils/DoubleIntHashMap.java +++ b/src/main/java/ch/spacebase/opennbt/utils/DoubleIntHashMap.java @@ -2,6 +2,43 @@ package ch.spacebase.opennbt.utils; import java.util.HashMap; +/* + * OpenNBT License + * + * JNBT Copyright (c) 2010 Graham Edgecombe + * OpenNBT Copyright(c) 2012 Steveice10 + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of the JNBT team nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/** + * A hashmap using two ints as keys. + */ public class DoubleIntHashMap extends HashMap { private static final long serialVersionUID = 1L;