public class WorkspaceItemUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHOR |
static Object |
HEIGHT |
static String |
NUMBER_OF_PAGES |
static String |
PRODUCER |
static String |
TITLE |
static String |
VERSION |
static Object |
WIDTH |
| Constructor and Description |
|---|
WorkspaceItemUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ij.ImagePlus |
getImgePlus(String pathOrURL) |
static MetaInfo |
getMetadataInfo(InputStream stream,
GCUBEStorage storage,
String remotePath,
String filenameWithExtension)
Save inpustream into storage and get metadata
|
static MetaInfo |
getMetadataInfo(InputStream stream,
GCUBEStorage storage,
String remotePath,
String filenameWithExtension,
String mimeType,
long size)
Get metadata info and save to storage using the same inpustream
|
static HashMap<String,String> |
getPDFInfo(InputStream is) |
static InputStream |
getThumbnailAsPng(ij.ImagePlus img,
int[] thumbSize) |
static InputStream |
getThumbnailAsPng(ij.ImagePlus img,
int thumbWidth,
int thumbHeight) |
static int[] |
getThumbnailDimension(int original_width,
int original_height) |
public static final String NUMBER_OF_PAGES
public static final String PRODUCER
public static final String VERSION
public static final String AUTHOR
public static final String TITLE
public static final Object WIDTH
public static final Object HEIGHT
public static ij.ImagePlus getImgePlus(String pathOrURL) throws IOException
IOExceptionpublic static int[] getThumbnailDimension(int original_width,
int original_height)
public static InputStream getThumbnailAsPng(ij.ImagePlus img, int[] thumbSize) throws IOException
IOExceptionpublic static InputStream getThumbnailAsPng(ij.ImagePlus img, int thumbWidth, int thumbHeight) throws IOException
IOExceptionpublic static HashMap<String,String> getPDFInfo(InputStream is)
public static MetaInfo getMetadataInfo(InputStream stream, GCUBEStorage storage, String remotePath, String filenameWithExtension, String mimeType, long size) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, IOException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException
stream - storage - name - remotePath - filenameWithExtension - org.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionIOExceptionorg.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionpublic static MetaInfo getMetadataInfo(InputStream stream, GCUBEStorage storage, String remotePath, String filenameWithExtension) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, IOException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException
stream - storage - remotePath - filenameWithExtension - org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionIOExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionCopyright © 2016. All Rights Reserved.