Package limelight

Examples of limelight.LimelightException


      {
        return new FileInputStream(file());
      }
      catch(FileNotFoundException e)
      {
        throw new LimelightException(e);
      }
    }
View Full Code Here


        else
          uri = new URI(path);
      }
      catch(URISyntaxException e)
      {
        throw new LimelightException("Failed to create URIPath from: " + path, e);
      }
    }
View Full Code Here

  }

  public void addOptions(Map<String, Object> newOptions)
  {
    if(isIlluminated())
      throw new LimelightException("Cannot add options to an illuminated Prop");

    if(options == null)
      options = new HashMap<String, Object>(newOptions);
    else
    {
View Full Code Here

  private void illuminateBackstage(Object backstageObject)
  {
    if(backstageObject == null)
      return;
    if(!(backstageObject instanceof Map))
      throw new LimelightException("backstage must be a map, but is: " + backstageObject.getClass());
    Map backstage = (Map) backstageObject;
    getBackstage().inject(backstage);
  }
View Full Code Here

  {
    final Scene root = getRoot();
    if(root != null)
      return root.getBackstage(this);
    else
      throw new LimelightException("Backstage requires the prop to be part of a scene.");
  }
View Full Code Here

    private ZipPath(FileSystem fs, String path)
    {
      this.fs = fs;
      final int bangIndex = path.indexOf("!");
      if(bangIndex == -1)
        throw new LimelightException("Invalid Jar file path: " + path);

      zipPath = (FileBasedPath) fs.resolve(path.substring(4, bangIndex));
      filePath = path.substring(bangIndex + 2);
    }
View Full Code Here

        {
          zip = new ZipFile(zipPath.file());
        }
        catch(IOException e)
        {
          throw new LimelightException(e);
        }
      }
      return zip;
    }
View Full Code Here

      return zipPath.exists() && (zipEntry() != null);
    }

    public void mkdirs()
    {
      throw new LimelightException("JarPath.mkdirs() is not supported");
    }
View Full Code Here

      }
    }

    public OutputStream outputStream()
    {
      throw new LimelightException("JarPath.outputStream() is not supported");
    }
View Full Code Here

      {
        return zip().getInputStream(zipEntry());
      }
      catch(IOException e)
      {
        throw new LimelightException(e);
      }
    }
View Full Code Here

TOP

Related Classes of limelight.LimelightException

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.