From 31fcbf3a36093f3e2a4625dc4714d2958eca2e30 Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Sat, 3 Mar 2012 10:05:44 -0800 Subject: [PATCH] License stuff --- HEADER.txt | 33 +++++++++++++++++++++++++ src/opennbt/NBTConstants.java | 9 +++---- src/opennbt/NBTUtils.java | 19 ++++++++++---- src/opennbt/stream/NBTInputStream.java | 9 +++---- src/opennbt/stream/NBTOutputStream.java | 9 +++---- src/opennbt/tag/ByteArrayTag.java | 9 +++---- src/opennbt/tag/ByteTag.java | 9 +++---- src/opennbt/tag/CompoundTag.java | 7 +++--- src/opennbt/tag/DoubleTag.java | 7 +++--- src/opennbt/tag/EndTag.java | 7 +++--- src/opennbt/tag/FloatTag.java | 7 +++--- src/opennbt/tag/IntTag.java | 7 +++--- src/opennbt/tag/ListTag.java | 7 +++--- src/opennbt/tag/LongTag.java | 7 +++--- src/opennbt/tag/ShortTag.java | 7 +++--- src/opennbt/tag/StringTag.java | 7 +++--- src/opennbt/tag/Tag.java | 7 +++--- 17 files changed, 97 insertions(+), 70 deletions(-) create mode 100644 HEADER.txt diff --git a/HEADER.txt b/HEADER.txt new file mode 100644 index 0000000..71eae9f --- /dev/null +++ b/HEADER.txt @@ -0,0 +1,33 @@ +/* + * 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. + */ diff --git a/src/opennbt/NBTConstants.java b/src/opennbt/NBTConstants.java index d07b9b7..7b6f4a7 100644 --- a/src/opennbt/NBTConstants.java +++ b/src/opennbt/NBTConstants.java @@ -3,9 +3,10 @@ package opennbt; import java.nio.charset.Charset; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -18,7 +19,7 @@ import java.nio.charset.Charset; * 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 + * * Neither the name of the OpenNBT team nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * @@ -37,8 +38,6 @@ import java.nio.charset.Charset; /** * A class which holds constant values. - * @author Graham Edgecombe - * */ public final class NBTConstants { diff --git a/src/opennbt/NBTUtils.java b/src/opennbt/NBTUtils.java index e5237c5..0086617 100644 --- a/src/opennbt/NBTUtils.java +++ b/src/opennbt/NBTUtils.java @@ -19,9 +19,10 @@ import opennbt.tag.Tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -34,7 +35,7 @@ import opennbt.tag.Tag; * 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 + * * Neither the name of the OpenNBT team nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * @@ -53,8 +54,6 @@ import opennbt.tag.Tag; /** * A class which contains NBT-related utility methods. - * @author Graham Edgecombe - * */ public final class NBTUtils { @@ -160,6 +159,11 @@ public final class NBTUtils { } } + /** + * Clones a Map. + * @param map to clone + * @return clone of map + */ public static Map cloneMap(Map map) { Map newMap = new HashMap(); @@ -170,6 +174,11 @@ public final class NBTUtils { return newMap; } + /** + * Clones a byte array + * @param array to clone + * @return clone of array + */ public static byte[] cloneArray(byte[] array) { if(array == null) { return null; diff --git a/src/opennbt/stream/NBTInputStream.java b/src/opennbt/stream/NBTInputStream.java index e4fc939..5cb02b5 100644 --- a/src/opennbt/stream/NBTInputStream.java +++ b/src/opennbt/stream/NBTInputStream.java @@ -1,9 +1,10 @@ package opennbt.stream; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -16,7 +17,7 @@ package opennbt.stream; * 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 + * * Neither the name of the OpenNBT team nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * @@ -67,8 +68,6 @@ import opennbt.tag.Tag; *

The NBT format was created by Markus Persson, and the specification may * be found at * http://www.minecraft.net/docs/NBT.txt.

- * @author Graham Edgecombe - * */ public final class NBTInputStream implements Closeable { diff --git a/src/opennbt/stream/NBTOutputStream.java b/src/opennbt/stream/NBTOutputStream.java index f95914a..9c846d8 100644 --- a/src/opennbt/stream/NBTOutputStream.java +++ b/src/opennbt/stream/NBTOutputStream.java @@ -24,9 +24,10 @@ import opennbt.tag.Tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -39,7 +40,7 @@ import opennbt.tag.Tag; * 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 + * * Neither the name of the OpenNBT team nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * @@ -64,8 +65,6 @@ import opennbt.tag.Tag; *

The NBT format was created by Markus Persson, and the specification may * be found at * http://www.minecraft.net/docs/NBT.txt.

- * @author Graham Edgecombe - * */ public final class NBTOutputStream implements Closeable { diff --git a/src/opennbt/tag/ByteArrayTag.java b/src/opennbt/tag/ByteArrayTag.java index cfc4e3c..2e76d79 100644 --- a/src/opennbt/tag/ByteArrayTag.java +++ b/src/opennbt/tag/ByteArrayTag.java @@ -6,9 +6,10 @@ import opennbt.NBTUtils; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -21,7 +22,7 @@ import opennbt.NBTUtils; * 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 + * * Neither the name of the OpenNBT team nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * @@ -40,8 +41,6 @@ import opennbt.NBTUtils; /** * The TAG_Byte_Array tag. - * @author Graham Edgecombe - * */ public final class ByteArrayTag extends Tag { diff --git a/src/opennbt/tag/ByteTag.java b/src/opennbt/tag/ByteTag.java index 80c38e9..1937ade 100644 --- a/src/opennbt/tag/ByteTag.java +++ b/src/opennbt/tag/ByteTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -16,7 +17,7 @@ package opennbt.tag; * 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 + * * Neither the name of the OpenNBT team nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_Byte tag. - * @author Graham Edgecombe - * */ public final class ByteTag extends Tag { diff --git a/src/opennbt/tag/CompoundTag.java b/src/opennbt/tag/CompoundTag.java index 7302a7b..7fb4ef3 100644 --- a/src/opennbt/tag/CompoundTag.java +++ b/src/opennbt/tag/CompoundTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -41,8 +42,6 @@ import opennbt.NBTUtils; /** * The TAG_Compound tag. - * @author Graham Edgecombe - * */ public final class CompoundTag extends Tag { diff --git a/src/opennbt/tag/DoubleTag.java b/src/opennbt/tag/DoubleTag.java index bd521fe..3342f86 100644 --- a/src/opennbt/tag/DoubleTag.java +++ b/src/opennbt/tag/DoubleTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_Double tag. - * @author Graham Edgecombe - * */ public final class DoubleTag extends Tag { diff --git a/src/opennbt/tag/EndTag.java b/src/opennbt/tag/EndTag.java index bacc799..02b1923 100644 --- a/src/opennbt/tag/EndTag.java +++ b/src/opennbt/tag/EndTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_End tag. - * @author Graham Edgecombe - * */ public final class EndTag extends Tag { diff --git a/src/opennbt/tag/FloatTag.java b/src/opennbt/tag/FloatTag.java index 67049b1..59308e0 100644 --- a/src/opennbt/tag/FloatTag.java +++ b/src/opennbt/tag/FloatTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_Float tag. - * @author Graham Edgecombe - * */ public final class FloatTag extends Tag { diff --git a/src/opennbt/tag/IntTag.java b/src/opennbt/tag/IntTag.java index b41e01c..4657191 100644 --- a/src/opennbt/tag/IntTag.java +++ b/src/opennbt/tag/IntTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_Int tag. - * @author Graham Edgecombe - * */ public final class IntTag extends Tag { diff --git a/src/opennbt/tag/ListTag.java b/src/opennbt/tag/ListTag.java index fc586cb..63a56e7 100644 --- a/src/opennbt/tag/ListTag.java +++ b/src/opennbt/tag/ListTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -42,8 +43,6 @@ import opennbt.NBTUtils; /** * The TAG_List tag. - * @author Graham Edgecombe - * */ public final class ListTag extends Tag { diff --git a/src/opennbt/tag/LongTag.java b/src/opennbt/tag/LongTag.java index a83b1a1..6115c31 100644 --- a/src/opennbt/tag/LongTag.java +++ b/src/opennbt/tag/LongTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_Long tag. - * @author Graham Edgecombe - * */ public final class LongTag extends Tag { diff --git a/src/opennbt/tag/ShortTag.java b/src/opennbt/tag/ShortTag.java index cb17446..b46a3d8 100644 --- a/src/opennbt/tag/ShortTag.java +++ b/src/opennbt/tag/ShortTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_Short tag. - * @author Graham Edgecombe - * */ public final class ShortTag extends Tag { diff --git a/src/opennbt/tag/StringTag.java b/src/opennbt/tag/StringTag.java index 153e200..fd8bd6b 100644 --- a/src/opennbt/tag/StringTag.java +++ b/src/opennbt/tag/StringTag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * The TAG_String tag. - * @author Graham Edgecombe - * */ public final class StringTag extends Tag { diff --git a/src/opennbt/tag/Tag.java b/src/opennbt/tag/Tag.java index a00c203..decb3ee 100644 --- a/src/opennbt/tag/Tag.java +++ b/src/opennbt/tag/Tag.java @@ -1,9 +1,10 @@ package opennbt.tag; /* - * JNBT License + * OpenNBT License * - * Copyright (c) 2010 Graham Edgecombe + * 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 @@ -35,8 +36,6 @@ package opennbt.tag; /** * Represents a single NBT tag. - * @author Graham Edgecombe - * */ public abstract class Tag implements Cloneable {