Package com.itstherules.stream.model

Examples of com.itstherules.stream.model.ItemsModel


 
  public List<String> values(String fileName){
    File file;
    List<String> lines = new LinkedList<String>();
    try {
      file = new ItemsModel("playlists", "", Extension.txt.toString()).get(fileName);
      BufferedReader reader = new BufferedReader(new FileReader(file));
      String line = null;
      while ((line = reader.readLine()) != null) {
        lines.add(line);
      }
View Full Code Here


 
  private static final String EXTENSIONS = ".jpg,.jpeg,.png";

  @Override
  public void list(Map<String, Object> parameters, HttpServletResponse response) throws IOException {
    ItemsModel itemsModel = new ItemsModel("photos", (String) parameters.get("directory"), EXTENSIONS);
    parameters.put("items", itemsModel.asList());
    merge("photos/list.freemarker", parameters, response.getWriter());
  }
View Full Code Here

    for (Model model : models) {
      if(model.accept(name)) {
        return model.getDirectoryPath() + name;
      }
    }
    return new ItemsModel("movies/", "", ".flv").getDirectoryPath() + name;
  }
View Full Code Here

TOP

Related Classes of com.itstherules.stream.model.ItemsModel

Copyright © 2018 www.massapicom. 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.