Package org.jboss.serial.util

Examples of org.jboss.serial.util.StringUtilBuffer$Position


  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here


    if (!super.setdoc(docId)) {
      return false;
    }

    // read header - number of enhancements and their lengths
    Position position = new Position();
    nEnhancements = Vint8.decode(buffer, position);
    for (int i = 0; i < nEnhancements; i++) {
      enhancementLength[i] = Vint8.decode(buffer, position);
    }
View Full Code Here

  public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
    if (length == 0) {
      return null;
    }
    Integer i = Integer.valueOf(Vint8.decode(buffer, new Position(offset)));
    return i;
  }
View Full Code Here

    {
        long original = 0;

        HashMap metaData = new HashMap();
        metaData.put("method","doTtestJbossSerializationMeasure");
        StringUtilBuffer buffer = new StringUtilBuffer(10*1024,10*1024);

        for (int exec=0;exec<LOOPS;exec++)
        {
            if (exec==1)
            {
View Full Code Here

        long original = 0;

        HashMap metaData = new HashMap();
        metaData.put("method","doTestJbossSerializationUsingByteArrayMeasure");

        StringUtilBuffer buffer = new StringUtilBuffer(10*1024,10*1024);

        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        for (int exec=0;exec<LOOPS;exec++)
        {
            if (exec==1)
View Full Code Here

        long original = 0;

        HashMap metaData = new HashMap();
        metaData.put("method","doTestJbossSerializationIndirect");

        StringUtilBuffer buffer = new StringUtilBuffer(10*1024,10*1024);

        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        for (int exec=0;exec<LOOPS;exec++)
        {
            if (exec==1)
View Full Code Here

   private static boolean trace = log.isTraceEnabled();

   public ObjectInputStream createInput(InputStream input, ClassLoader loader) throws IOException
   {
      if (trace) { log.trace(this + " creating JBossObjectInputStream"); }
      return new JBossObjectInputStream(input, loader, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

   }

   public ObjectOutputStream createOutput(OutputStream output) throws IOException
   {
      if (trace) { log.trace(this + " creating JBossObjectOutputStream"); }
      return new JBossObjectOutputStream(output, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

   private static boolean trace = log.isTraceEnabled();

   public ObjectInputStream createInput(InputStream input, ClassLoader loader) throws IOException
   {
      if (trace) { log.trace(this + " creating JBossObjectInputStream"); }
      return new JBossObjectInputStream(input, loader, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

   }

   public ObjectOutputStream createOutput(OutputStream output) throws IOException
   {
      if (trace) { log.trace(this + " creating JBossObjectOutputStream"); }
      return new JBossObjectOutputStream(output, new StringUtilBuffer(10024, 10024));
   }
View Full Code Here

TOP

Related Classes of org.jboss.serial.util.StringUtilBuffer$Position

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.