View Javadoc
1   package com.github.davidmoten.rx2.internal.flowable.buffertofile;
2   
3   import java.io.IOException;
4   
5   import com.github.davidmoten.rx2.buffertofile.Serializer;
6   
7   public final class SerializerBytes implements Serializer<byte[]> {
8   
9       @Override
10      public byte[] serialize(byte[] t) throws IOException {
11          return t;
12      }
13  
14      @Override
15      public byte[] deserialize(byte[] bytes) throws ClassNotFoundException, IOException {
16          return bytes;
17      }
18  
19  }