Class PlatformSerializerUtil
java.lang.Object
com._1c.g5.v8.dt.internal.platform.services.core.profiles.PlatformSerializerUtil
TODO: paste code of this class to com._1c.g5.v8.dt.core.streams.impl.PlatformSerializerUtil
when G5V8DT-4793 will be merged. Delete this class and replace invocations after that.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Value
readDefaultValue
(IListInStream lis, IPlatformSerializerCustomization<?>... customizations) ReadsValue
.static void
writeDefaultValue
(IListOutStream los, Value value, IPlatformSerializerCustomization<?>... customizations) WritesValue
to the stream.
-
Constructor Details
-
PlatformSerializerUtil
public PlatformSerializerUtil()
-
-
Method Details
-
readDefaultValue
public static Value readDefaultValue(IListInStream lis, IPlatformSerializerCustomization<?>... customizations) ReadsValue
. Reads onlyUndefinedValu
,BooleanValue
,NumberValue
,StringValue
andDateValue
. But clients may provide serializercustomizations
.- Parameters:
lis
- stream for reading, can't benull
customizations
- cumstomizations to read custom values, order is important; can be empty- Returns:
- read
Value
from the stream, nevernull
-
writeDefaultValue
public static void writeDefaultValue(IListOutStream los, Value value, IPlatformSerializerCustomization<?>... customizations) WritesValue
to the stream. By default support onlyUndefinedValu
,BooleanValue
,NumberValue
,StringValue
andDateValue
. But clients may provide serializercustomizations
.- Parameters:
los
- actual stream, can't benull
value
- writingValue
, can't benull
customizations
- cumstomizations to write custom values, order is important; can be empty
-