Package com.jitcaforwin.main.exceptions.general

Examples of com.jitcaforwin.main.exceptions.general.JitcaFileNotFoundException


  // TestTODO
  public IITOperationStatus addFiles(File[] files) throws JitcaFileException, PlaylistDeletedException, PlaylistReadOnlyException {
    for (File f : files) {
      if (!f.exists())
        throw new JitcaFileNotFoundException(f);
    }

    try {
      String[] paths = new String[files.length];
      for (int i = 0; i < paths.length; i++) {
View Full Code Here


  }

  public void setArtworkFromFile(File file) throws ArtworkDeletedException, JitcaFileNotFoundException {
    try {
      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

    this.iTunesCom.callProcedure("Stop");
  }

  public void playFile(File fileToPlay) throws JitcaException {
    if (!fileToPlay.exists())
      throw new JitcaFileNotFoundException(fileToPlay);
    this.iTunesCom.callProcedure("PlayFile", fileToPlay.getAbsolutePath());
  }
View Full Code Here

  // TestTODO
  public IITOperationStatus convertFile(File file) throws ConversionInProgressException, JitcaFileNotFoundException,
      ConvertOperationFailed {
    if (!file.exists())
      throw new JitcaFileNotFoundException(file);
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertFile", file.getAbsolutePath());
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
    } catch (ITUNES_E_CONVERSIONINPROGRESS e) {
View Full Code Here

  public IITOperationStatus convertFiles(File[] files) throws JitcaException {
    try {
      String paths[] = new String[files.length];
      for (int i = 0; i < files.length; i++) {
        if (!files[i].exists())
          throw new JitcaFileNotFoundException(files[i]);
        paths[i] = files[i].getAbsolutePath();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertFiles", paths);
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
View Full Code Here

  }

  // TestTODO
  public IITOperationStatus convertFile2(File file) throws JitcaException {
    if (!file.exists())
      throw new JitcaFileNotFoundException(file);
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertFile2", file.getAbsolutePath());
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
    } catch (ITUNES_E_CONVERSIONINPROGRESS e) {
View Full Code Here

  public IITOperationStatus convertFiles2(File[] files) throws JitcaException {
    try {
      String paths[] = new String[files.length];
      for (int i = 0; i < files.length; i++) {
        if (!files[i].exists())
          throw new JitcaFileNotFoundException(files[i]);
        paths[i] = files[i].getAbsolutePath();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertFiles2", paths);
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
View Full Code Here

    this.iTunesCom.callProcedure("Stop");
  }

  public void playFile(File fileToPlay) throws JitcaException {
    if (!fileToPlay.exists())
      throw new JitcaFileNotFoundException(fileToPlay);
    this.iTunesCom.callProcedure("PlayFile", fileToPlay.getAbsolutePath());
  }
View Full Code Here

  // TestTODO
  public IITOperationStatus convertFile(File file) throws ConversionInProgressException, JitcaFileNotFoundException,
      ConvertOperationFailed {
    if (!file.exists())
      throw new JitcaFileNotFoundException(file);
    try {
      ResultObject result = this.iTunesCom.callFunction("ConvertFile", file.getAbsolutePath());
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
    } catch (ITUNES_E_CONVERSIONINPROGRESS e) {
View Full Code Here

  public IITOperationStatus convertFiles(File[] files) throws JitcaException {
    try {
      String paths[] = new String[files.length];
      for (int i = 0; i < files.length; i++) {
        if (!files[i].exists())
          throw new JitcaFileNotFoundException(files[i]);
        paths[i] = files[i].getAbsolutePath();
      }
      ResultObject result = this.iTunesCom.callFunction("ConvertFiles", paths);
      DispatchObject dispatch = result.getDispatch();
      return new ITOperationStatusImpl(dispatch);
View Full Code Here

TOP

Related Classes of com.jitcaforwin.main.exceptions.general.JitcaFileNotFoundException

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.