Package com.cedarsoftware.util.io
Class Writers
- java.lang.Object
-
- com.cedarsoftware.util.io.Writers
-
public class Writers extends Object
All custom writers for json-io subclass this class. Special writers are not needed for handling user-defined classes. However, special writers are built/supplied by json-io for many of the primitive types and other JDK classes simply to allow for a more concise form.- Author:
- John DeRegnaucourt ([email protected])
Copyright (c) Cedar Software LLC
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.*
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Writers.AtomicBooleanWriter
static class
Writers.AtomicIntegerWriter
static class
Writers.AtomicLongWriter
static class
Writers.BigDecimalWriter
static class
Writers.BigIntegerWriter
static class
Writers.CalendarWriter
static class
Writers.ClassWriter
static class
Writers.DateWriter
static class
Writers.DefaultEnumWriter
static class
Writers.EnumAsPrimitiveWriter
static class
Writers.JsonStringWriter
static class
Writers.LocaleWriter
static class
Writers.PrimitiveTypeWriter
static class
Writers.PrimitiveUtf8StringWriter
Used as a template to write out primitive String types.static class
Writers.PrimitiveValueWriter
Used as a template to write out value types such as int, boolean, etc.static class
Writers.StringBufferWriter
static class
Writers.StringBuilderWriter
static class
Writers.TimestampWriter
static class
Writers.TimeZoneWriter
static class
Writers.URLWriter
static class
Writers.UUIDWriter
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static void
writeJsonUtf8String(String s, Writer output)
-
-
-
Method Detail
-
writeJsonUtf8String
protected static void writeJsonUtf8String(String s, Writer output) throws IOException
- Throws:
IOException
-
-