public class StyleFileAccess
extends java.lang.Object
| Constructor and Description |
|---|
StyleFileAccess() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
findDirectories(java.lang.String webPath)
Find all style - including the one that are externally store within
the stream store.
|
static java.util.List<java.lang.String> |
findFiles(java.lang.String webPath,
java.lang.String extension)
Find all style - including the one that are externally store within
the stream store.
|
static byte[] |
readStyleFile(java.lang.String webPath)
Reads a file from style directory at runtime.
|
static java.lang.String |
readStyleUTF8File(java.lang.String webPath)
Reads a file from style directory at runtime.
|
static void |
writeRuntimeStyleFile(java.lang.String styleName,
java.lang.String fileName,
byte[] content)
Writes a file into the style directory for the corresponding style.
|
static void |
writeRuntimeStyleFile(java.lang.String styleName,
java.lang.String fileName,
java.lang.String content)
Writes a file into the style directory for the corresponding style.
|
public static java.util.List<java.lang.String> findDirectories(java.lang.String webPath)
public static java.util.List<java.lang.String> findFiles(java.lang.String webPath,
java.lang.String extension)
public static byte[] readStyleFile(java.lang.String webPath)
webPath - The path within the webcontent, e.g. "/eclntjsfserver/styles/xyz/xyz.png"public static java.lang.String readStyleUTF8File(java.lang.String webPath)
webPath - The path within the webcontent, e.g. "/eclntjsfserver/styles/xyz/xyz.png"public static void writeRuntimeStyleFile(java.lang.String styleName,
java.lang.String fileName,
java.lang.String content)
public static void writeRuntimeStyleFile(java.lang.String styleName,
java.lang.String fileName,
byte[] content)
Copyright © CaptainCasa Gmbh. All Rights Reserved.