Examples of CloneableInputStream


Examples of org.chromattic.common.CloneableInputStream

          //
          if (propertyCache != null) {
            if (value instanceof InputStream) {
              try {
                value = new CloneableInputStream((InputStream)value);
              }
              catch (IOException e) {
                throw new AssertionError(e);
              }
            }
View Full Code Here

Examples of org.chromattic.common.CloneableInputStream

      //
      if (propertyCache != null) {
        if (propertyValue != null) {
          if (propertyValue instanceof InputStream) {
            byte[] bytes = ((CopyingInputStream)propertyValue).getBytes();
            propertyValue = new CloneableInputStream(bytes);
          } else if (propertyValue instanceof Date) {
            propertyValue = ((Date)propertyValue).clone();
          }
          propertyCache.put(propertyName, propertyValue);
        } else {
View Full Code Here

Examples of org.chromattic.common.CloneableInputStream

    //
    if (o instanceof InputStream && broadcaster.hasStateChangeListeners()) {
      CopyingInputStream in = new CopyingInputStream((InputStream)o);
      state.setPropertyValue(propertyName, type, in);
      byte[] bytes = in.getBytes();
      broadcaster.propertyChanged(object, propertyName, new CloneableInputStream(bytes));
    } else {
      state.setPropertyValue(propertyName, type, o);
      broadcaster.propertyChanged(object, propertyName, o);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.