Examples of CopyingInputStream


Examples of org.chromattic.common.CopyingInputStream

  void setPropertyValue(String propertyName, SimpleValueInfo type, Object propertyValue) {
    try {
      if (propertyCache != null) {
        if (propertyValue instanceof InputStream) {
          propertyValue = new CopyingInputStream((InputStream)propertyValue);
        }
      }

      //
      Value jcrValue;
View Full Code Here

Examples of org.chromattic.common.CopyingInputStream

    //
    EventBroadcaster broadcaster = state.getSession().broadcaster;

    //
    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.