Package io.sentry.cache.tape
Interface ObjectQueue.Converter<T>
- Type Parameters:
T
- Object type.
- Enclosing class:
- ObjectQueue<T>
public static interface ObjectQueue.Converter<T>
Convert a byte stream to and from a concrete type.
-
Method Summary
Modifier and TypeMethodDescriptionfrom
(byte[] source) Converts bytes to an object.void
toStream
(T value, OutputStream sink) Convertsvalue
to bytes written to the specified stream.
-
Method Details
-
from
Converts bytes to an object.- Throws:
IOException
-
toStream
Convertsvalue
to bytes written to the specified stream.- Throws:
IOException
-