Get the list of Images from the db.

@return list of notes.

@throws IOException if something goes wrong.
547059
public static List<Image> getImagesList( IHMConnection connection ) throws Exception {
        List<Image> images = new ArrayList<Image>();
        String sql = "select " + //
                ImageTableFields.COLUMN_ID.getFieldName() + "," + //
                ImageTableFields.COLUMN_LON.getFieldName() + "," + //
                ImageTableFields.COLUMN_LAT.getFieldName() + "," + //
                ImageTableFields.COLUMN_ALTIM.getFieldName() + "," + //
                ImageTableFields.COLUMN_TS.getFieldName() + "," + //
                ImageTableFields.COLUMN_AZIM.getFieldName() + "," + //
                ImageTableFields.COLUMN_TEXT.getFieldName() + "," + //
                ImageTableFields.COLUMN_NOTE_ID.getFieldName() + "," + //
                ImageTableFields.COLUMN_IMAGEDATA_ID.getFieldName() + //
                " from " + TABLE_IMAGES;

        try (IHMStatement statement = connection.createStatement(); IHMResultSet rs = statement.executeQuery(sql);) {
            statement.setQueryTimeout(30); // set timeout to 30 sec.
            
            while( rs.next() ) {
                long id = rs.getLong(1);
                double lon = rs.getDouble(2);
                double lat = rs.getDouble(3);
                double altim = rs.getDouble(4);
                long ts = rs.getLong(5);
                double azim = rs.getDouble(6);
                String text = rs.getString(7);
                long noteId = rs.getLong(8);
                long imageDataId = rs.getLong(9);

                Image image = new Image(id, text, lon, lat, altim, azim, imageDataId, noteId, ts);
                images.add(image);
            }
        }
        return images;
    }
822018
@SuppressWarnings("unchecked")
  public synchronized Map<String, String> listDatabases() throws IOException {
    storage.checkConnection();
    final ODocument result = new ODocument();
    try {
      final OChannelBinaryClient network = storage.beginRequest(OChannelBinaryProtocol.REQUEST_DB_LIST);
      storage.endRequest(network);

      try {
        storage.beginResponse(network);
        result.fromStream(network.readBytes());
      } finally {
        storage.endResponse(network);
      }

    } catch (Exception e) {
      OLogManager.instance().exception("Cannot retrieve the configuration list", e, OStorageException.class);
      storage.close(true);
    }
    return (Map<String, String>) result.field("databases");
  }
711242
public java.util.List<Image> getImages() {
        if (images == null) {
            images = new com.amazonaws.internal.SdkInternalList<Image>();
        }
        return images;
    }
1084098
private function getImageFiles()
    {
        if ($this->imageFiles === null) {
            // Get a list of images.
            $this->imageFiles = $this->filesystem
                ->find()
                ->in('files://')
                ->name('/\.jpe?g$/')
                ->name('*.png')
                ->toArray()
            ;
        }

        return $this->imageFiles;
    }
512129
public String[] list()
    {
        String[] list =_file.list();
        if (list==null)
            return null;
        for (int i=list.length;i-->0;)
        {
            if (new File(_file,list[i]).isDirectory() &&
                !list[i].endsWith("/"))
                list[i]+="/";
        }
        return list;
    }
836798
public List<T> toList() {
        final List<T> results = new ArrayList<T>();
        try {
            while (wrapped.hasNext()) {
                results.add(next());
            }
        } finally {
            wrapped.close();
        }
        return results;
    }
405611
public java.util.List<FpgaImage> getFpgaImages() {
        if (fpgaImages == null) {
            fpgaImages = new com.amazonaws.internal.SdkInternalList<FpgaImage>();
        }
        return fpgaImages;
    }
412302
public java.util.List<DBSnapshot> getDBSnapshots() {
        if (dBSnapshots == null) {
            dBSnapshots = new com.amazonaws.internal.SdkInternalList<DBSnapshot>();
        }
        return dBSnapshots;
    }
1037975
public List<CoinbaseAccount> getCoinbaseAccounts() throws IOException {
    String apiKey = exchange.getExchangeSpecification().getApiKey();
    BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();

    return coinbase
        .getAccounts(Coinbase.CB_VERSION_VALUE, apiKey, signatureCreator2, timestamp)
        .getData();
  }
247093
public List<TiffObject> getImageIfds() {
    List<TiffObject> l = new ArrayList<TiffObject>();
    IFD oifd = this.firstIFD;
    while (oifd != null) {
      if (oifd.isImage()) {
        if (oifd.hasSubIFD()) {
          try {
            long length = oifd.getMetadata().get("ImageLength").getFirstNumericValue();
            long width = oifd.getMetadata().get("ImageWidth").getFirstNumericValue();
            long sublength =
                oifd.getsubIFD().getMetadata().get("ImageLength").getFirstNumericValue();
            long subwidth = oifd.getsubIFD().getMetadata().get("ImageWidth").getFirstNumericValue();
            if (sublength > length && subwidth > width) {
              l.add(oifd.getsubIFD());
            } else {
              l.add(oifd);
            }
          } catch (Exception ex) {
            l.add(oifd);
          }
        } else {
          l.add(oifd);
        }
      }
      oifd = oifd.getNextIFD();
    }
    return l;
  }
220418
public static List getClasspathArchives()
    {
        List archives = new ArrayList();
        List components = getClasspathComponents();
        for (Iterator i = components.iterator(); i.hasNext();)
        {
            String possibleDir = (String) i.next();
            File file = new File(possibleDir);
            if (file.isFile()
                && (file.getName().endsWith(".jar") || file.getName().endsWith(".zip")))
            {
                archives.add(possibleDir);
            }
        }
        return archives;
    }
749082
public void list() throws IOException {
        this.writer.println("+OK");
        this.writer.println("1 " + msg1.length());
        this.writer.println("2 " + msg2.length());
        this.println(".");
    }
628633
public List<String> getAllPDBIDs() throws IOException{

		File f = new File(path);
		if ( ! f.isDirectory())
			throw new IOException("Path " + path + " is not a directory!");

		String[] dirName = f.list();

		List<String>pdbIds = new ArrayList<String>();
		for (String dir : dirName) {
			File d2= new File(f,dir);
			if ( ! d2.isDirectory())
				continue;

			String[] pdbDirs = d2.list();
			for (String pdbId : pdbDirs) {
				if ( ! pdbIds.contains(pdbId))
					pdbIds.add(pdbId);

			}
		}

		return pdbIds;
	}
1133119
@Override
    public List values() throws IOException {
	List<String> keys = keys();
	List<Object> list = new ArrayList<Object>();
	Iterator<String> it = keys.iterator();
	String key;
	while (it.hasNext()) {
	    key = it.next();
	    list.add(getQuiet(key, null).getValue());
	}
	return list;
    }
764578
public List<JSONObject> getResourceData()
    {
        List<JSONObject> resources = new ArrayList<JSONObject>();
    
        try
        {
            if (data != null && data.has(documentsParam))
            {
                List<JSONObject> results = getDocuments();
                
                for(JSONObject json : results)
                {
                    if (json.has(documentParam))
                    {
                        JSONObject result = json.getJSONObject(documentParam);
                        results.add(result);
                    }
                }
            }
            else if (data != null && data.has(getRecordParam))
            {
                List<JSONObject> results = getRecords();
                
                for(JSONObject json : results)
                {
                    if (json.has(resourceDataParam))
                    {
                        JSONObject result = json.getJSONObject(resourceDataParam);
                        results.add(result);
                    }
                }
            }
        }
        catch (JSONException e)
        {
            //This is already handled by the enclosing "has" checks
        }
        
        return resources;
    }
343832
private void fetchMissingRecords() throws IOException {
        logger.debug("Records includes:");
        records.forEach(r -> logger.debug("{}", r));
        for (PtrRecord ptr : records.stream().filter(r -> r instanceof PtrRecord).map(r -> (PtrRecord) r).collect(Collectors.toList())) {
            fetchMissingSrvRecordsFor(ptr);
            fetchMissingTxtRecordsFor(ptr);
        }
        for (SrvRecord srv : records.stream().filter(r -> r instanceof SrvRecord).map(r -> (SrvRecord) r).collect(Collectors.toList())) {
            fetchMissingAddressRecordsFor(srv);
        }
    }
181882
public static List<File> createTiffFiles(List<IIOImage> imageList, int index) throws IOException {
        return createTiffFiles(imageList, index, 0, 0);
    }