Package org.chromattic.common

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


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

Related Classes of org.chromattic.common.CopyingInputStream

Copyright © 2018 www.massapicom. 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.