Examples of ByteBuffer


Examples of JP.digitune.util.ByteBuffer

    System.arraycopy(buf, indexes[3] + 1, packbuf, 0, packbuf.length);
    pack = new IPMPack(packbuf);
  }
 
  public byte[] getBytes() {
    ByteBuffer bb = new ByteBuffer();
    String prefix = fromaddr.toString() + ":" + toaddr.toString() + ":";
    bb.append(prefix.getBytes());
    bb.append(pack.getBytes());
    byte[] suffix = new byte[]{0, 0, 0};
    bb.append(suffix);
    return bb.getBytes();
  }
View Full Code Here

Examples of antlr.ByteBuffer

@SuppressWarnings({"unchecked", "unused"})
public class SearchExpressionLexer extends antlr.CharScanner implements SearchExpressionLexerTokenTypes, TokenStream
{
public SearchExpressionLexer(InputStream in) {
  this(new ByteBuffer(in));
}
View Full Code Here

Examples of com.alimama.web.ByteBuffer

    }
   
    if(writebuff.size()>10240&&isFile)
        {
          out.write(writebuff.toArray(),0,writebuff.size());
          writebuff=new ByteBuffer(10752);
        }
   
    if(split.isfullcut)
    {
       this.skip(out, writebuff, charset, params);
       writebuff=new ByteBuffer(10752);

    }
    return split.isfullcut;
  }
View Full Code Here

Examples of com.caucho.util.ByteBuffer

    // XXX: response.setIgnoreClientDisconnect(server.getIgnoreClientDisconnect());

    _dispatchRequest = new HmuxDispatchRequest(this);

    _uri = new ByteBuffer();

    _method = new CharBuffer();
    _host = new CharBuffer();
    _protocol = new CharBuffer();

    _headerKeys = new CharBuffer[HEADER_CAPACITY];
    _headerValues = new CharBuffer[_headerKeys.length];
    for (int i = 0; i < _headerKeys.length; i++) {
      _headerKeys[i] = new CharBuffer();
      _headerValues[i] = new CharBuffer();
    }

    _remoteHost = new CharBuffer();
    _remoteAddr = new CharBuffer();
    _serverName = new CharBuffer();
    _serverPort = new CharBuffer();
    _remotePort = new CharBuffer();

    _clientCert = new ByteBuffer();

    _cb1 = new CharBuffer();
    _cb2 = new CharBuffer();

    _filter = new ServletFilter();
View Full Code Here

Examples of com.ibm.icu.impl.ByteBuffer

                    // TODO: Determine actual & valid locale correctly
                    ULocale uloc = rb.getULocale();
                    setLocale(uloc, uloc);

                    m_rules_ = elements.getString("Sequence");
                    ByteBuffer buf = elements.get("%%CollationBin").getBinary();
                    // %%CollationBin
                    if(buf!=null){
                    //     m_rules_ = (String)rules[1][1];
                        byte map[] = buf.array();
                        CollatorReader.initRBC(this, map);
                        /*
                        BufferedInputStream input =
                                                 new BufferedInputStream(
                                                    new ByteArrayInputStream(map));
View Full Code Here

Examples of com.itextpdf.text.pdf.ByteBuffer

            if (dg2 != null) {
              dg2.dispose();
              dg2 = null;
            }
            if (kids != null) {
                ByteBuffer buf = new ByteBuffer();
                internalDispose(buf);
                ByteBuffer buf2 = cb.getInternalBuffer();
                buf2.reset();
                buf2.append(buf);
            }
        }
    }
View Full Code Here

Examples of com.jbidwatcher.util.ByteBuffer

    String thumbnail = ai.getThumbnailURL();
    //  eBay has started including a 64x64 image instead of the 96x96 ones they used to have,
    //  but it's named '*6464.jpg' instead of '*.jpg'.
    if(thumbnail == null) thumbnail = ai.getAlternateSiteThumbnail();

    ByteBuffer thumbnailImage = getThumbnailByURL(thumbnail);

    //  If we retrieved 'something', but it was 0 bytes long, it's not a thumbnail.
    if(thumbnailImage != null && thumbnailImage.getLength() == 0) thumbnailImage = null;

    String imgPath = Thumbnail.getValidImagePath(ai.getIdentifier(), thumbnailImage);

    ai.setThumbnail(imgPath);
    MQFactory.getConcrete("redraw").enqueue(ai.getIdentifier());
View Full Code Here

Examples of com.logica.smpp.util.ByteBuffer

    String encodedMessage =  "";
   
    if(message != null) {
      encodedMessage = message;
      if(emsClass == 0x40) {
        ByteBuffer bb = new ByteBuffer(encodedMessage.getBytes());
        encodedMessage = bb.getHexDump();
        encodedMessage = encodedMessage.toUpperCase();
      } else {
        encodedMessage = encodedMessage.replace('|', ' ');
        encodedMessage = encodedMessage.replaceAll("\r\n", " ");
        encodedMessage = encodedMessage.replace('\n', ' ');
View Full Code Here

Examples of com.lowagie.text.pdf.ByteBuffer

                if (colorType == 3) {
                    PdfArray colorspace = new PdfArray();
                    colorspace.add(PdfName.INDEXED);
                    colorspace.add(getColorspace());
                    colorspace.add(new PdfNumber(len / 3 - 1));
                    ByteBuffer colortable = new ByteBuffer();
                    while ((len--) > 0) {
                        colortable.append_i(is.read());
                    }
                    colorspace.add(new PdfString(colorTable = colortable.toByteArray()));
                    additional.put(PdfName.COLORSPACE, colorspace);
                }
                else {
                    Utilities.skip(is, len);
                }
View Full Code Here

Examples of java.nio.ByteBuffer

        public void run() {
            this.setName("ReceiverThread");
            Message msg;
            Object o;
            ByteBuffer buf;
            TotOrderRequest req;
            while(running) {
                try {
                    o=channel.receive(0);
                    if(o instanceof Message) {
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.