Class ImageSerializer
java.lang.Object
org.apache.juneau.Context
org.apache.juneau.BeanContextable
org.apache.juneau.BeanTraverseContext
org.apache.juneau.serializer.Serializer
org.apache.juneau.serializer.OutputStreamSerializer
org.apache.juneau.examples.serializer.ImageSerializer
- All Implemented Interfaces:
AnnotationProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.serializer.OutputStreamSerializer
OutputStreamSerializer.Builder
Nested classes/interfaces inherited from class org.apache.juneau.serializer.Serializer
Serializer.Null
-
Field Summary
Fields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER
Fields inherited from interface org.apache.juneau.AnnotationProvider
DEFAULT, DISABLE_ANNOTATION_CACHING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doSerialize
(SerializerSession session, SerializerPipe pipe, Object o) Serializes a POJO to the specified pipe.Methods inherited from class org.apache.juneau.serializer.OutputStreamSerializer
create, createSession, getBinaryFormat, getSession, isWriterSerializer, properties, serialize
Methods inherited from class org.apache.juneau.serializer.Serializer
copy, createSerializerBuilder, forEachAcceptMediaType, getListener, getMediaTypeRanges, getPrimaryMediaType, getResponseContentType, getResponseHeaders, getUriContext, getUriRelativity, getUriResolution, isAddBeanTypes, isAddRootType, isKeepNullProperties, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimStrings, serialize, serializeToString
Methods inherited from class org.apache.juneau.BeanTraverseContext
getInitialDepth, getMaxDepth, isDetectRecursions, isIgnoreRecursions
Methods inherited from class org.apache.juneau.BeanContextable
getBeanContext
Methods inherited from class org.apache.juneau.Context
createBuilder, firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, init, isDebug, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation, toString
-
Constructor Details
-
ImageSerializer
public ImageSerializer()
-
-
Method Details
-
doSerialize
public void doSerialize(SerializerSession session, SerializerPipe pipe, Object o) throws IOException, SerializeException Description copied from class:Serializer
Serializes a POJO to the specified pipe.- Overrides:
doSerialize
in classSerializer
- Parameters:
session
- The current session.pipe
- Where to send the output from the serializer.o
- The object to serialize.- Throws:
IOException
- Thrown by underlying stream.SerializeException
- Problem occurred trying to serialize object.
-