summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/util/Appender.java
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-08-30 02:09:37 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-08-30 02:09:37 +0000
commit41e062b7896bfae5ecd1d75f7b99305b7b2e6ce8 (patch)
treecc38efe346de67519892cca24caf83805b0d4e2e /src/main/java/com/amazon/carbonado/util/Appender.java
parent21ffac73f08766ea06a289028f7479d04cb0ccff (diff)
Add general utilities
Diffstat (limited to 'src/main/java/com/amazon/carbonado/util/Appender.java')
-rw-r--r--src/main/java/com/amazon/carbonado/util/Appender.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/util/Appender.java b/src/main/java/com/amazon/carbonado/util/Appender.java
new file mode 100644
index 0000000..03a3559
--- /dev/null
+++ b/src/main/java/com/amazon/carbonado/util/Appender.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2006 Amazon Technologies, Inc. or its affiliates.
+ * Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
+ * of Amazon Technologies, Inc. or its affiliates. All rights reserved.
+ *
+ * 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 com.amazon.carbonado.util;
+
+import java.io.IOException;
+
+/**
+ * Interface that supports an alternate way of providing a string representation
+ * for an object.
+ *
+ * @author Brian S O'Neill
+ */
+public interface Appender {
+ /**
+ * Append the string representation of this object to the given Appendable.
+ *
+ * @param appendable Appendable object to receive string representation
+ * @throws IOException if thrown from given Appendable
+ * @throws NullPointerException if appendable is null
+ */
+ void appendTo(Appendable appendable) throws IOException;
+}