Package org.pentaho.reporting.libraries.repository

Examples of org.pentaho.reporting.libraries.repository.MimeRegistry


   * @throws org.pentaho.reporting.libraries.repository.ContentIOException
   *          if the name could not be generated for any reason.
   */
  public String generateName(final String nameHint, final String mimeType) throws ContentIOException
  {
    final MimeRegistry mimeRegistry = fileContentLocation.getRepository().getMimeRegistry();
    final File targetDirectory = fileContentLocation.getBackend();
    final String suffix = mimeRegistry.getSuffix(mimeType);
    try
    {
      final File tempFile = File.createTempFile(nameHint, "." + suffix, targetDirectory);
      return tempFile.getName();
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.repository.MimeRegistry

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.