- java.lang.Object
-
- de.ibapl.jnhw.common.util.JsonStringBuilder
-
public class JsonStringBuilder extends Object
- Author:
- aploese
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJsonStringBuilder.Appender
-
Constructor Summary
Constructors Constructor Description JsonStringBuilder(Appendable sb, String indentPrefix, String indent)JsonStringBuilder(String indentPrefix, String indent)
-
Method Summary
-
-
-
Constructor Detail
-
JsonStringBuilder
public JsonStringBuilder(Appendable sb, String indentPrefix, String indent)
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
appendIntMember
public void appendIntMember(String name, int value, IntFunction<String> valueFormatter) throws IOException
- Throws:
IOException
-
appendAddressMember
public void appendAddressMember(String name, long value) throws IOException
- Throws:
IOException
-
appendCharMember
public void appendCharMember(String name, char value) throws IOException
- Throws:
IOException
-
appendByteMember
public void appendByteMember(String name, byte value) throws IOException
- Throws:
IOException
-
appendUnsignedByteMember
public void appendUnsignedByteMember(String name, byte value) throws IOException
- Throws:
IOException
-
appendHexByteMember
public void appendHexByteMember(String name, byte value) throws IOException
- Throws:
IOException
-
appendRawDataMember
public void appendRawDataMember(String name, byte[] value) throws IOException
- Throws:
IOException
-
appendShortMember
public void appendShortMember(String name, short value) throws IOException
- Throws:
IOException
-
appendUnsignedShortMember
public void appendUnsignedShortMember(String name, short value) throws IOException
- Throws:
IOException
-
appendHexShortMember
public void appendHexShortMember(String name, short value) throws IOException
- Throws:
IOException
-
appendIntMember
public void appendIntMember(String name, int value) throws IOException
- Throws:
IOException
-
appendUnsignedIntMember
public void appendUnsignedIntMember(String name, int value) throws IOException
- Throws:
IOException
-
appendHexIntMember
public void appendHexIntMember(String name, int value) throws IOException
- Throws:
IOException
-
appendLongMember
public void appendLongMember(String name, long value) throws IOException
- Throws:
IOException
-
appendUnsignedLongMember
public void appendUnsignedLongMember(String name, long value) throws IOException
- Throws:
IOException
-
appendHexLongMember
public void appendHexLongMember(String name, long value) throws IOException
- Throws:
IOException
-
appendStringMember
public void appendStringMember(String name, String value) throws IOException
- Throws:
IOException
-
appendNativeAddressHolderMember
public void appendNativeAddressHolderMember(String name, NativeAddressHolder value) throws IOException
- Throws:
IOException
-
appendStruct32Member
public void appendStruct32Member(String name, Struct32 value) throws IOException
- Throws:
IOException
-
appendStructArray32Member
public void appendStructArray32Member(String name, StructArray32<?> array) throws IOException
- Throws:
IOException
-
appendMember
public void appendMember(String name, String valuePrefix, JsonStringBuilder.Appender valueAppender, String valuePostfix) throws IOException
- Throws:
IOException
-
appendFunctionPtrMember
public void appendFunctionPtrMember(String name, NativeFunctionPointer value) throws IOException
- Throws:
IOException
-
-