Package one.nio.serial
Class HttpRequestSerializer
- java.lang.Object
-
- one.nio.serial.Serializer<Request>
-
- one.nio.serial.HttpRequestSerializer
-
- All Implemented Interfaces:
Externalizable,Serializable
public class HttpRequestSerializer extends Serializer<Request>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class one.nio.serial.Serializer
cls, descriptor, origin, uid
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalcSize(Request obj, CalcSizeStream css)RequestfromJson(JsonReader in)Requestread(DataStream in)voidskip(DataStream in)voidtoJson(Request obj, StringBuilder builder)voidwrite(Request obj, DataStream out)-
Methods inherited from class one.nio.serial.Serializer
cls, code, deserialize, equals, fromString, generateUid, hashCode, persist, readExternal, serialize, sizeOf, skipExternal, toJson, toString, uid, uniqueName, writeExternal
-
-
-
-
Method Detail
-
calcSize
public void calcSize(Request obj, CalcSizeStream css) throws IOException
- Specified by:
calcSizein classSerializer<Request>- Throws:
IOException
-
write
public void write(Request obj, DataStream out) throws IOException
- Specified by:
writein classSerializer<Request>- Throws:
IOException
-
read
public Request read(DataStream in) throws IOException, ClassNotFoundException
- Specified by:
readin classSerializer<Request>- Throws:
IOExceptionClassNotFoundException
-
skip
public void skip(DataStream in) throws IOException, ClassNotFoundException
- Specified by:
skipin classSerializer<Request>- Throws:
IOExceptionClassNotFoundException
-
toJson
public void toJson(Request obj, StringBuilder builder) throws IOException
- Specified by:
toJsonin classSerializer<Request>- Throws:
IOException
-
fromJson
public Request fromJson(JsonReader in) throws IOException, ClassNotFoundException
- Specified by:
fromJsonin classSerializer<Request>- Throws:
IOExceptionClassNotFoundException
-
-