Examples of endsWith()


Examples of com.ctc.wstx.util.TextBuffer.endsWith()

        }

        assertEquals(INPUT, tb.toString());
        assertEquals(INPUT, tb.contentsAsString());
        assertFalse(tb.endsWith("shor"));
        assertTrue(tb.endsWith("so as not to be too short"));
        assertFalse(tb.isAllWhitespace());

        assertTrue(tb.equalsString(INPUT));

        /*
 
View Full Code Here

Examples of com.mysema.query.types.path.StringPath.endsWith()

        StringPath str = user.lastName;
        List<Predicate> predicates = new ArrayList<Predicate>();
        predicates.add(str.between("a", "b"));
        predicates.add(str.contains("a"));
        predicates.add(str.containsIgnoreCase("a"));
        predicates.add(str.endsWith("a"));
        predicates.add(str.endsWithIgnoreCase("a"));
        predicates.add(str.eq("a"));
        predicates.add(str.equalsIgnoreCase("a"));
        predicates.add(str.goe("a"));
        predicates.add(str.gt("a"));
View Full Code Here

Examples of com.uic.ase.proj.xbn.string.SOBStringBuffer.endsWith()

   **/
  public CRLineAnalyzer(StringBuffer sb_line, int i_lineNumber, int i_mlcStartLine, int i_varStartLine, StringOrBuffer sob_varStartName, char c_varStartDelim, Outputter optr_dbg, CRLAObjects crla_objectsthrows ConfigFormatException  {
    //Validate parameters...START
      SOBStringBuffer ssbLine = new SOBStringBuffer(sb_line);

      if(!ssbLine.endsWith(sLINE_SEP))  {
        //This is the last line in the source text.
        bLastLine = true;

      else  {
        //The line *does* end with the line separator.
View Full Code Here

Examples of java.io.File.endsWith()

        // reread skins
        skinFiles = FileUtils.getDirListing(skinPath, SKIN_FILENAME_FILTER);
        Collections.sort(skinFiles);
        int count = 0;
        for (final String skinFile : skinFiles) {
            if (skinFile.endsWith(".css")) {
                prop.put("skinlist_" + count + "_file", skinFile);
                prop.put("skinlist_" + count + "_name", skinFile.substring(0, skinFile.length() - 4));
                count++;
            }
        }
View Full Code Here

Examples of java.io.InputStream.endsWith()

                    URLHandler handler = URLHandler.get(url);
                    if (handler != null) {
                        final ArrayList lst = new ArrayList();
                        URLVisitor v = new URLVisitor() {
                            public void visit(String s) {
                                if (s.endsWith(".res") && !"res_index.res".equals(s)) {
                                    lst.add(s.substring(0, s.length() - 4)); // strip '.res'
                                }
                            }
                        };
                        handler.guide(v, false);
View Full Code Here

Examples of java.io.StringWriter.endsWith()

      // atomicCmd.set(cmd);
      cmd.start(env);

    } catch (UnloggedFailure e) {
      String msg = e.getMessage();
      if (!msg.endsWith("\n")) {
        msg += "\n";
      }
      err.write(msg.getBytes(Charsets.UTF_8));
      err.flush();
      exit.onExit(e.exitCode);
View Full Code Here

Examples of java.lang.String.endsWith()

    public String toString()
    {
        String ldapDN = "";
        for (int i=0; i<RDNs.size(); i++)
            ldapDN =  get(i) + (i!=0?",":"") + ldapDN;
        if (ldapDN.endsWith(","))
        {
            if (ldapDN.charAt(ldapDN.length()-2) != '\\')
            {
                ldapDN = ldapDN.substring(0,ldapDN.length()-1);
            }
View Full Code Here

Examples of java.nio.file.Path.endsWith()

    Files.walkFileTree(testStoragePath, new SimpleFileVisitor<Path>() {
      @Override
      public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
        Path fileToCopy = copyTo.resolve(testStoragePath.relativize(file));
        if (fileToCopy.endsWith("baseLocalPaginatedStorageRestoreFromWALAndAddAdditionalRecords.wmr"))
          fileToCopy = fileToCopy.getParent().resolve("testLocalPaginatedStorageRestoreFromWALAndAddAdditionalRecords.wmr");
        else if (fileToCopy.endsWith("baseLocalPaginatedStorageRestoreFromWALAndAddAdditionalRecords.0.wal"))
          fileToCopy = fileToCopy.getParent().resolve("testLocalPaginatedStorageRestoreFromWALAndAddAdditionalRecords.0.wal");

        Files.copy(file, fileToCopy);
View Full Code Here

Examples of java.util.Collection.endsWith()

            } else if (type.equals(SelectionCriteria.END)) {
              if ((property instanceof String)
                  && (value instanceof String)) {
                String p = (String) property;
                String s = (String) value;
                if (p.endsWith(s)) {
                  result.add(entity);
                }
              }
            } else if (type.equals(SelectionCriteria.NOT_END)) {
              if ((property instanceof String)
View Full Code Here

Examples of javax.naming.CompoundName.endsWith()

  public void testEndsWith() throws InvalidNameException {
    log.setMethod("testEndsWith()");
    CompoundName name;

    name = new CompoundName("a/b/c/d", props);
    assertTrue(name.endsWith(new CompoundName("", props)));
    assertTrue(name.endsWith(new CompoundName("c/d", props)));
    assertTrue(name.endsWith(new CompoundName("a/b/c/d", props)));

    assertFalse(name.endsWith(new CompoundName("b", props)));
    assertFalse(name.endsWith(new CompoundName("a/b/c/d/e", props)));
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.