Examples of entries()


Examples of com.volantis.devrep.device.api.xml.tacidentification.TacIdentification.entries()

            RepositoryConnection connection) throws RepositoryException {

        Collection tacPairs = new ArrayList();
        TacIdentification tacIdentification = loadTacIdentification();
        if (tacIdentification != null) {
            Iterator entries = tacIdentification.entries();
            while (entries.hasNext()) {
                TacIdentificationEntry entry = (TacIdentificationEntry)
                        entries.next();
                String deviceName = entry.getDeviceName();
                Iterator numbers = entry.numbers();
View Full Code Here

Examples of de.schlichtherle.util.zip.BasicZipFile.entries()

        BasicZipFile zip = new BasicZipFile(source);
       
        try {
            // count the zip entries so we can do progress bar
            long totalSize = 0L;
            for (Enumeration<? extends ZipEntry> it = zip.entries(); it
                    .hasMoreElements();) {
                ZipEntry e = it.nextElement();
                totalSize += e.getSize();
            }
View Full Code Here

Examples of de.schlichtherle.util.zip.ZipFile.entries()

     */
    public static void extract(File zipFile, String prefix, String dest) throws IOException {
      ZipFile zip = new ZipFile(zipFile);
      int prefixLength = prefix.length();
        FileOutputStream fos = null;
        Enumeration entries = zip.entries();
        try {
          while (entries.hasMoreElements()) {
            ZipEntry entry = (ZipEntry) entries.nextElement();
            if(entry.getName().startsWith(prefix)) {
              InputStream is = null;
View Full Code Here

Examples of hivemall.io.PredictionModel.entries()

                for(Map.Entry<Object, PredictionModel> entry : label2model.entrySet()) {
                    Object label = entry.getKey();
                    forwardMapObj[0] = label;
                    PredictionModel model = entry.getValue();
                    numMixed += model.getNumMixed();
                    IMapIterator<Object, IWeightValue> itor = model.entries();
                    while(itor.next() != -1) {
                        itor.getValue(probe);
                        if(!probe.isTouched()) {
                            continue; // skip outputting untouched weights
                        }
View Full Code Here

Examples of io.netty.handler.codec.http.HttpHeaders.entries()

                        new DefaultCookie("my-cookie", "foo"),
                        new DefaultCookie("another-cookie", "bar"))
        );

        // send request
        List<Entry<String, String>> entries = headers.entries();
        channel.writeAndFlush(request);

        // Wait for the server to close the connection.
        channel.closeFuture().sync();
View Full Code Here

Examples of io.vertx.core.MultiMap.entries()

  @Test
  public void testEntriesTest1()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();

    List<Map.Entry<String, String>> result = mmap.entries();

    assertNotNull(result);
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of io.vertx.core.http.CaseInsensitiveHeaders.entries()

  @Test
  public void testEntriesTest1()
      throws Exception {
    MultiMap mmap = new CaseInsensitiveHeaders();

    List<Map.Entry<String, String>> result = mmap.entries();

    assertNotNull(result);
    assertEquals(0, result.size());
  }
View Full Code Here

Examples of java.io.File.entries()

                  final Map<String, Archive> subTypes = new HashMap<String, Archive>();
                  for (Archive archive : extension.getSubArchives())
                  {
                     subTypes.put(archive.getType(), archive);
                  }
                  Enumeration<? extends ZipEntry> entries = f.entries();
                  Map<String, Archive> names = new TreeMap<String, Archive>();
                  while (entries.hasMoreElements())
                  {
                     ZipEntry ze = entries.nextElement();
                     String name = ze.getName();
View Full Code Here

Examples of java.util.jar.JarFile.entries()

      if (jar != null) {
        try {
          // System.out.println("jar: " + jar.getAbsolutePath());
          JarFile jarFile = new JarFile(jar);
          Enumeration entries = jarFile.entries();
          ArrayList list = new ArrayList(250);
          while (entries.hasMoreElements()) {
            JarEntry jarEntry = (JarEntry) entries.nextElement();
            if (jarEntry.getName().startsWith(bundleFolder)
                && jarEntry.getName().endsWith(extension)) {
View Full Code Here

Examples of java.util.jar.JarFile.entries()

  private static void findInJar(List<Class<?>> results, File file, String packageName) {
    JarFile jarFile = null;
    String packagePath = nameToPath(packageName) + "/";
    try {
      jarFile = new JarFile(file);
      Enumeration<JarEntry> en = jarFile.entries();
      while (en.hasMoreElements()) {
        JarEntry je = en.nextElement();
        String name = je.getName();
        if (name.startsWith(packagePath) && name.endsWith(CLASS_FILE)) {
          String className = name.substring(0, name.length() - CLASS_FILE.length());
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.