Examples of compact()


Examples of com.sun.j3d.utils.geometry.GeometryInfo.compact()

    GeometryInfo geometryInfo = new GeometryInfo(GeometryInfo.QUAD_ARRAY);
    geometryInfo.setCoordinates(coords);
    geometryInfo.setTextureCoordinateParams(1, 2);
    geometryInfo.setTextureCoordinates(0, textureCoords);
    geometryInfo.indexify();
    geometryInfo.compact();
    Geometry halfSphereGeometry = geometryInfo.getIndexedGeometryArray();
    return halfSphereGeometry;
  }

  /**
 
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination.compact()

                 */
                if (d.isInternal() || d.isAdmin() || d.isTemporary())  {
                    continue;
                }

                d.compact();
            }
        }
    }
   
    public static void checkDestType(String type) throws BrokerException  {
View Full Code Here

Examples of com.sun.xml.bind.v2.runtime.output.Encoded.compact()

    public synchronized Encoded[] getUTF8NameTable() {
        if(utf8nameTable==null) {
            Encoded[] x = new Encoded[nameList.localNames.length];
            for( int i=0; i<x.length; i++ ) {
                Encoded e = new Encoded(nameList.localNames[i]);
                e.compact();
                x[i] = e;
            }
            utf8nameTable = x;
        }
        return utf8nameTable;
View Full Code Here

Examples of com.sun.xml.internal.bind.v2.runtime.output.Encoded.compact()

    public synchronized Encoded[] getUTF8NameTable() {
        if(utf8nameTable==null) {
            Encoded[] x = new Encoded[nameList.localNames.length];
            for( int i=0; i<x.length; i++ ) {
                Encoded e = new Encoded(nameList.localNames[i]);
                e.compact();
                x[i] = e;
            }
            utf8nameTable = x;
        }
        return utf8nameTable;
View Full Code Here

Examples of com.zenesis.qx.event.EventManager.compact()

    EventManager.removeListener(testObjects[0], "myEvent4", listeners[4]);
    EventManager.removeListener(testObjects[0], "myEvent3", listeners[3]);
    EventManager.removeListener(testObjects[0], "myEvent2", listeners[2]);
    EventManager.removeListener(testObjects[0], "myEvent1", listeners[1]);
    EventManager.removeListener(testObjects[0], "myEvent0", listeners[0]);
    assertTrue(mgr.compact());
   
    for (int i = 0; i < testObjects.length; i++)
      for (int j = 1; j <= i; j++)
        EventManager.addListener(testObjects[j], "helloWorldEvent" + i, listeners[j]);
   
View Full Code Here

Examples of eu.stratosphere.test.recordJobs.util.Tuple.compact()

   
    Tuple t = new Tuple();
    t.addAttribute("Hello world!");
   
    Assert.assertTrue(t.getBytes().length == 256);
    t.compact();
    Assert.assertTrue(t.getBytes().length == 13);
   
    byte[] ba = new byte[1024];
    int[] of = {0};
    t = new Tuple(ba, of, 0);
View Full Code Here

Examples of java.nio.ByteBuffer.compact()

      logger.debug("sent {} bytes to wire", bytesWritten);
      if (!toSend.hasRemaining()) {
        logger.debug("sent all data in toSend buffer");
        closeOrRegisterForRead(key)// should probably only be done if the HttpResponse is finished
      } else {
        toSend.compact()// make room for more data be "read" in
      }
    } catch (IOException e) {
      logger.error("Failed to send data to client: {}", e.getMessage());
      Closeables.closeQuietly(channel);
    }
View Full Code Here

Examples of java.nio.ByteBuffer.compact()

        int count=channel.write(buffer);  System.out.println("COUNT="+count);
        // check if all bytes where written
        if (buffer.hasRemaining()) {
            // if not all bytes were written, move the unwritten bytes to the beginning and
            // set position just after the last unwritten byte
            buffer.compact();
        } else { buffer.clear()}
        return (long)count;
    }

View Full Code Here

Examples of java.nio.ByteBuffer.compact()

              do {
                inputBuffer.flip();
               
                if(!inputBuffer.hasRemaining() || forceRead) {
                 
                  inputBuffer.compact();
                  int read = rawIn.read(bufferIn);
   
                  if(read==-1)
                    throw new EOFException("Unexpected EOF whilst waiting for SSL unwrap");
                
View Full Code Here

Examples of java.nio.ByteBuffer.compact()

                  inputBuffer.flip();
                }
   
                 res = engine.unwrap(inputBuffer, outputBuffer);
   
                 inputBuffer.compact();

                 forceRead = res.getStatus()==SSLEngineResult.Status.BUFFER_UNDERFLOW;
                
              } while(forceRead);
             
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.