|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.dam.util.AssetUtil
public class AssetUtil
Utility method for Asset
.
Constructor Summary | |
---|---|
AssetUtil()
|
Method Summary | |
---|---|
static Asset |
createAsset(File file,
String path)
Deprecated. This is temporary solution. More complete solution will be provided in version 1.3. |
static Asset |
createAsset(InputStream stream,
String targetPath,
String extension)
Deprecated. This is temporary solution. More complete solution will be provided in version 1.3. |
static String |
getEncodedFileName(Asset asset)
Encode the FileName in a UTF-8 bases. |
static String |
replaceSpecialCharacters(String fileName)
Replace the following characters: «,»,<,>,",',/,\ they make issue with ie. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetUtil()
Method Detail |
---|
public static String getEncodedFileName(Asset asset)
public static String replaceSpecialCharacters(String fileName)
public static Asset createAsset(File file, String path) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryException
IOException
public static Asset createAsset(InputStream stream, String targetPath, String extension) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |