@Override public void readData(ObjectDataInput in) throws IOException { value = in.readByteArray(); contentType = in.readByteArray(); }
@Override public void readData(ObjectDataInput in) throws IOException { value = in.readByteArray(); contentType = in.readByteArray(); }
@Override public Object read(ObjectDataInput in) throws IOException { byte[] bytes = in.readByteArray(); if (bytes == null) { return null; } return serializer.read(bytes); }
@Override public Object read(ObjectDataInput in) throws IOException { byte[] bytes = in.readByteArray(); if (bytes == null) { return null; } return serializer.read(bytes); }
@Override public void readData(ObjectDataInput in) throws IOException { mainClassDefinition = in.readByteArray(); int size = in.readInt(); innerClassDefinitions = new HashMap<String, byte[]>(); for (int i = 0; i < size; i++) { innerClassDefinitions.put(in.readUTF(), in.readByteArray()); } } }
@Override public void readData(ObjectDataInput in) throws IOException { mainClassDefinition = in.readByteArray(); int size = in.readInt(); innerClassDefinitions = new HashMap<String, byte[]>(); for (int i = 0; i < size; i++) { innerClassDefinitions.put(in.readUTF(), in.readByteArray()); } } }
@Override public void readData(ObjectDataInput in) throws IOException { userName = in.readUTF(); password = in.readByteArray(); }
@Override public PersonProtos.Person read(ObjectDataInput in) throws IOException { return PersonProtos.Person.parseFrom(in.readByteArray()); }
@Override protected void readInternal(ObjectDataInput in) throws IOException { int length = in.readInt(); classDefinitions = new ArrayList<Map.Entry<String, byte[]>>(length); for (int i = 0; i < length; i++) { String className = in.readUTF(); byte[] classDefinition = in.readByteArray(); classDefinitions.add(new AbstractMap.SimpleEntry<String, byte[]>(className, classDefinition)); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { int length = in.readInt(); classDefinitions = new ArrayList<Map.Entry<String, byte[]>>(length); for (int i = 0; i < length; i++) { String className = in.readUTF(); byte[] classDefinition = in.readByteArray(); classDefinitions.add(new AbstractMap.SimpleEntry<String, byte[]>(className, classDefinition)); } }
@Override public Map<String, byte[]> readContent(DataInput in) throws IOException { int size = in.readInt(); Map<String, byte[]> content = new HashMap<>(size); ContentDataPool cdPool = ContentDataPool.getDataPool(); for (int i=0; i < size; i++) { content.put(cdPool.intern(in.readUTF()), ((ObjectDataInput) in).readByteArray()); } return content; }
@Override public void readData(ObjectDataInput in) throws IOException { init(in.readInt(), null); this.register = in.readByteArray(); }
@Override public void readData(ObjectDataInput in) throws IOException { init(in.readInt(), null); this.register = in.readByteArray(); }
@Override public Object read(ObjectDataInput in, Class aClass) throws IOException { byte[] bytes = in.readByteArray(); if (bytes == null) { return null; } if (!(serializer instanceof TypedByteArrayDeserializer)) { throw new HazelcastSerializationException( serializer + " is not implementing the " + TypedByteArrayDeserializer.class + " interface. Please implement this interface to deserialize for class " + aClass); } TypedByteArrayDeserializer deserializer = (TypedByteArrayDeserializer) serializer; return deserializer.read(bytes, aClass); }
@Override public Object read(ObjectDataInput in, Class aClass) throws IOException { byte[] bytes = in.readByteArray(); if (bytes == null) { return null; } if (!(serializer instanceof TypedByteArrayDeserializer)) { throw new HazelcastSerializationException( serializer + " is not implementing the " + TypedByteArrayDeserializer.class + " interface. Please implement this interface to deserialize for class " + aClass); } TypedByteArrayDeserializer deserializer = (TypedByteArrayDeserializer) serializer; return deserializer.read(bytes, aClass); }
public static Object readCompressedContent(ObjectDataInput in, ContentSerializer<Object> cs) throws IOException { InternalSerializationService ss = in.getSerializationService(); ObjectDataInput odi = ss.createObjectDataInput(IOUtil.decompress(in.readByteArray())); return cs.readContent(odi); }
public static Object readCompressedData(ObjectDataInput in) throws IOException { InternalSerializationService ss = in.getSerializationService(); ObjectDataInput odi = ss.createObjectDataInput(IOUtil.decompress(in.readByteArray())); return odi.readObject(); }
@Override public void readData(ObjectDataInput in) throws IOException { //repo = SchemaRepositoryImpl.getRepository(); InternalSerializationService ss = in.getSerializationService(); ObjectDataInput odi = ss.createObjectDataInput(IOUtil.decompress(in.readByteArray())); super.readData(odi); }
@Override public void readData(ObjectDataInput in) throws IOException { int p = in.readInt(); int total = in.readInt(); int mark = in.readInt(); int prev = in.readInt(); byte[] bytes = in.readByteArray(); init(p, new VariableLengthDiffArray(bytes, total, mark, prev)); }
@Override public void readData(ObjectDataInput in) throws IOException { int p = in.readInt(); int total = in.readInt(); int mark = in.readInt(); int prev = in.readInt(); byte[] bytes = in.readByteArray(); init(p, new VariableLengthDiffArray(bytes, total, mark, prev)); }