Package com.jitcaforwin.basic.exceptions

Examples of com.jitcaforwin.basic.exceptions.ArtworkDeletedException


  public void delete() throws ArtworkDeletedException {
    try {
      this.iTunesCom.callProcedure("Delete");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    }

  }
View Full Code Here


      if (!file.exists())
        throw new JitcaFileNotFoundException(file);

      this.iTunesCom.callProcedure("SetArtworkFromFile", file.getAbsolutePath());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    }
  }
View Full Code Here

  public void saveArtworkToFile(File file) throws ArtworkDeletedException {
    try {
      this.iTunesCom.callProcedure("SaveArtworkToFile", file.getAbsolutePath());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    }
  }
View Full Code Here

  public ITArtworkFormat getFormat() throws ArtworkDeletedException {
    try {
      return new ITArtworkFormat(this.iTunesCom.getPropertyAsEnum("Format"));
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    }
  }
View Full Code Here

  public boolean isDownloadedArtwork() throws ArtworkDeletedException {
    try {
      return this.iTunesCom.getPropertyAsBoolean("DownloadedArtwork");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    }
  }
View Full Code Here

  public String getDescription() throws ArtworkDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Description");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    }
  }
View Full Code Here

  public void setDescription(String description) throws ArtworkDeletedException, TrackLockedException {
    try {
      this.iTunesCom.setProperty("Description", description);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ArtworkDeletedException(this);
    } catch (ITUNES_E_OBJECTLOCKED e){
      throw new TrackLockedException(null);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.exceptions.ArtworkDeletedException

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.