Examples of ByteArrayPersistedValueData


Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      if (buffer == null)
      {
         return new CleanableFilePersistedValueData(orderNumber, swapFile, swapCleaner);
      }

      return new ByteArrayPersistedValueData(orderNumber, buffer);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      }

      public TempPropertyData(ResultSet item, boolean readValue) throws SQLException
      {
         orderNum = item.getInt(COLUMN_VORDERNUM);
         data = readValue ? new ByteArrayPersistedValueData(orderNum, item.getBytes(COLUMN_VDATA)) : null;
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

            while ((r = is.read(buff)) >= 0)
            {
               System.arraycopy(buff, 0, res, rpos, r);
               rpos += r;
            }
            return new ByteArrayPersistedValueData(orderNum, res);
         }
         finally
         {
            is.close();
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      if (buffer == null)
      {
         return new CleanableFilePersistedValueData(orderNumber, swapFile, swapCleaner);
      }

      return new ByteArrayPersistedValueData(orderNumber, buffer);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      if (isByteArray)
      {
         byte[] data = new byte[in.readInt()];
         in.readFully(data);
         return new ByteArrayPersistedValueData(orderNumber, data);
      }
      else
      {
         // read file id - used for reread data optimization
         String id = in.readString();
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      if (isByteArray)
      {
         byte[] data = new byte[in.readInt()];
         in.readFully(data);
         return new ByteArrayPersistedValueData(orderNumber, data);
      }
      else
      {
         // read file id - used for reread data optimization
         String id = in.readString();
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

            while ((r = is.read(buff)) >= 0)
            {
               System.arraycopy(buff, 0, res, rpos, r);
               rpos += r;
            }
            return new ByteArrayPersistedValueData(orderNum, res);
         }
         finally
         {
            is.close();
         }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      if (buffer == null)
      {
         return new CleanableFilePersistedValueData(orderNumber, swapFile, swapCleaner);
      }

      return new ByteArrayPersistedValueData(orderNumber, buffer);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

      if (buffer == null)
      {
         return new CleanableFilePersistedValueData(orderNumber, swapFile, swapCleaner);
      }

      return new ByteArrayPersistedValueData(orderNumber, buffer);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.persistent.ByteArrayPersistedValueData

            {
               System.arraycopy(buff, 0, res, rpos, r);
               rpos += r;
            }

            return new ByteArrayPersistedValueData(res, orderNum);
         }
      }
      finally
      {
         is.close();
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.