ome.io.nio
Class AbstractFileSystemService

java.lang.Object
  extended by ome.io.nio.AbstractFileSystemService
Direct Known Subclasses:
OriginalFilesService, PixelsService, ThumbnailService

public class AbstractFileSystemService
extends Object

Author:
callan

Field Summary
static String FILES_PATH
           
static String PIXELS_PATH
           
static String ROOT_DEFAULT
           
static String THUMBNAILS_PATH
           
 
Constructor Summary
AbstractFileSystemService(String path)
           
 
Method Summary
protected  void createSubpath(String path)
          Makes sure that for a given path, it's subpath exists.
 String getFilesPath(Long id)
           
 String getPixelsPath(Long id)
           
 String getThumbnailPath(Long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_DEFAULT

public static final String ROOT_DEFAULT

PIXELS_PATH

public static final String PIXELS_PATH

FILES_PATH

public static final String FILES_PATH

THUMBNAILS_PATH

public static final String THUMBNAILS_PATH
Constructor Detail

AbstractFileSystemService

public AbstractFileSystemService(String path)
Method Detail

createSubpath

protected void createSubpath(String path)
Makes sure that for a given path, it's subpath exists. For example, given the path "/foo/bar/foobar.txt" the method will make sure the directory structure "/foo/bar" exists.

Parameters:
path - the path to check for subpath existance.

getPixelsPath

public String getPixelsPath(Long id)

getFilesPath

public String getFilesPath(Long id)

getThumbnailPath

public String getThumbnailPath(Long id)


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.