Package net.pms.dlna

Examples of net.pms.dlna.RealFile


      return;
    }
    addChild(new VirtualFolder("Title: " + info.getName(), null));

    XBMCLog.logTimeStart("adding title file");
    addChild(new RealFile(info.getFile()) {
      @Override
      public String getName() {
        return "Play";
      }
View Full Code Here


        @Override
        public List<RealFile> getList() {
          List<SongInfo> songs = dao.getTracksByAlbum(albumId);
          List<RealFile> songFiles = new ArrayList<RealFile>();
          for (SongInfo songInfo : songs) {
            songFiles.add(new RealFile(songInfo.getFile()));
          }
          return songFiles;
        }
      });
    }
View Full Code Here

   * This function is here to make it possible
   * filter more types of files
   */
  private boolean doFile(String tag, DLNAResource res) {
    if (res instanceof RealFile) {
      RealFile rf = (RealFile) res;
      return doFilter(tag, rf.getFile().getAbsolutePath(), ".file");
    } else {
      return false;
    }
  }
View Full Code Here

    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    context.reset();

    // initialise the fixtures
    // XXX we need to call isValid to call checktype(), which is needed to initialise the format
    image = new RealFile(new File("test.jpg"));
    image.isValid();
    audio = new RealFile(new File("test.mp3"));
    audio.isValid();
    video = new RealFile(new File("test.mpg"));
    video.isValid();
    webImage = new WebStream("", "http://example.com/test.jpg", "", Format.IMAGE);
    webImage.isValid();
    webAudio = new WebStream("", "http://example.com/test.mp3", "", Format.AUDIO);
    webAudio.isValid();
View Full Code Here

    context.reset();

    // initialise the fixtures
    // XXX we need to call isValid() to call the (protected) resolveFormat()
    // method, which is needed to initialise the format
    image = new RealFile(new File("test.jpg"));
    image.isValid();
    audio = new RealFile(new File("test.mp3"));
    audio.isValid();
    video = new RealFile(new File("test.mpg"));
    video.isValid();
    webImage = new WebStream("", "http://example.com/test.jpg", "", Format.IMAGE);
    webImage.isValid();
    webAudio = new WebStream("", "http://example.com/test.mp3", "", Format.AUDIO);
    webAudio.isValid();
View Full Code Here

TOP

Related Classes of net.pms.dlna.RealFile

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.