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.voidtoStream(T value, OutputStream sink) Convertsvalueto bytes written to the specified stream.
-
Method Details
-
from
Converts bytes to an object.- Throws:
IOException
-
toStream
Convertsvalueto bytes written to the specified stream.- Throws:
IOException
-