org.silverpeas.viewer
Class ViewerFactory

java.lang.Object
  extended by org.silverpeas.viewer.ViewerFactory

public class ViewerFactory
extends Object

Viewer factory which provides preview and view services.

Author:
Yohann Chastagnier

Method Summary
static PreviewService getPreviewService()
          Preview services accessor
static ViewService getViewService()
          View services accessor
static boolean isPreviewable(File file)
          Indicates if file is previewable.
static boolean isPreviewable(String path)
          Indicates if file is previewable.
static boolean isViewable(File file)
          Indicates if file is displayable with FlexPaper.
static boolean isViewable(String path)
          Indicates if file is displayable with FlexPaper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPreviewService

public static PreviewService getPreviewService()
Preview services accessor

Returns:

isPreviewable

public static boolean isPreviewable(File file)
Indicates if file is previewable.

Parameters:
file -
Returns:
true if a preview can be produced - false otherwise.

isPreviewable

public static boolean isPreviewable(String path)
Indicates if file is previewable.

Parameters:
path -
Returns:
true if a preview can be produced - false otherwise.

isViewable

public static boolean isViewable(File file)
Indicates if file is displayable with FlexPaper.

Parameters:
file -
Returns:
true if a preview can be produced - false otherwise.

isViewable

public static boolean isViewable(String path)
Indicates if file is displayable with FlexPaper.

Parameters:
path -
Returns:
true if a preview can be produced - false otherwise.

getViewService

public static ViewService getViewService()
View services accessor

Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.