Examples of prepend()


Examples of org.jruby.util.ByteList.prepend()

                }
            }

            if (ungotc >= 0) {
                ByteList buf2 = bufferedRead(number - 1);
                buf2.prepend((byte)ungotc);
                ungotc = -1;
                return buf2;
            }

            return bufferedRead(number);
View Full Code Here

Examples of org.jruby.util.ByteList.prepend()

            // already have some bytes buffered, just return those

            ByteList result = bufferedRead(Math.min(buffer.remaining(), number));

            if (ungotc >= 0) {
                result.prepend((byte)ungotc);
                ungotc = -1;
            }
            return result;
        } else {
            // otherwise, we try an unbuffered read to get whatever's available
View Full Code Here

Examples of org.jsoup.nodes.Element.prepend()

      Elements colgroups = table.select("colgroup");
      if(colgroups.size()>0){
        Element colgroup = colgroups.get(0);
        totalColumns = column+colgroup.children().size();
        for(int i=0;i<column;i++){
          colgroup.prepend("<col width=\"67\" />");
        }
      }
      Elements tbodys = table.select("tbody");
      if(tbodys.size()>0){
        Element tbody = tbodys.get(0);
View Full Code Here

Examples of org.springframework.ldap.core.DistinguishedName.prepend()

    private DirContextOperations bindWithDn(String userDnStr, String username, String password) {
        BaseLdapPathContextSource ctxSource = (BaseLdapPathContextSource) getContextSource();
        DistinguishedName userDn = new DistinguishedName(userDnStr);
        DistinguishedName fullDn = new DistinguishedName(userDn);
        fullDn.prepend(ctxSource.getBaseLdapPath());

        logger.debug("Attempting to bind as " + fullDn);

        DirContext ctx = null;
        try {
View Full Code Here

Examples of plotter.xy.CompressingXYDataset.prepend()

      if(plot.getAxisOrientationSetting() == AxisOrientationSetting.Y_AXIS_AS_TIME) {
        double[] tmp = x;
        x = y;
        y = tmp;
      }
      dataset.prepend(x, 0, y, 0, x.length);
    } else {
      // Data appearing in the middle of the dataset.
      // Assume that it's caused by the last second of data arriving twice,
      // once from the initial historical request and once from the once-per-second update.
      // It may also be values for predictive data we already loaded.
View Full Code Here

Examples of railo.runtime.type.Array.prepend()

            realpathArr.removeEL(1);
            if(parentArr.size()>0) {
                parentArr.removeEL(parentArr.size());
            }
            else {
                parentArr.prepend("..");
            }
    }
        ArrayMerge.append(parentArr,realpathArr);
        init(parentArr);
    }
View Full Code Here

Examples of sun.net.www.MessageHeader.prepend()

             * is a global header and so prepend Manifest to it.
             */
            String jdkVersion = System.getProperty("java.version");

            if (globals.findValue("Name") == null) {
                globals.prepend("Manifest-Version", VERSION);
                globals.add("Created-By", "Manifest JDK "+jdkVersion);
            } else {
                ps.print("Manifest-Version: "+VERSION+"\r\n"+
                         "Created-By: "+jdkVersion+"\r\n\r\n");
            }
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.