Ejemplo n.º 1
0
  /** Writes any object to the output stream. */
  public void writeObject(Object object) throws IOException {
    if (object == null) {
      writeNull();
      return;
    }

    Serializer serializer;

    serializer = findSerializerFactory().getSerializer(object.getClass());

    serializer.writeObject(object, this);
  }
Ejemplo n.º 2
0
 public void writeObject(OutputStream stream, Object object) throws Exception {
   GZIPOutputStream gzip = new GZIPOutputStream(stream, _bufferSize);
   _delegate.writeObject(gzip, object);
   gzip.close();
 }
 public void serialize(final Serializer serializer) {
   serializer.writeString("language", this.getLanguage());
   serializer.writeObject("remoteServer", this.getNisEndpoint());
   serializer.writeObject("nisBootInfo", this.getNisBootInfo());
   serializer.writeInt("firstStart", this.getFirstStart());
 }