Package org.eclnt.jsfserver.util.style
Class StyleFileAccess
java.lang.Object
org.eclnt.jsfserver.util.style.StyleFileAccess
General method to read files in the context of style management.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindDirectories
(String webPath) Find all style - including the one that are externally store within the stream store.Find all style - including the one that are externally store within the stream store.static byte[]
readStyleFile
(String webPath) Reads a file from style directory at runtime.static String
readStyleUTF8File
(String webPath) Reads a file from style directory at runtime.static void
writeRuntimeStyleFile
(String styleName, String fileName, byte[] content) Writes a file into the style directory for the corresponding style.static void
writeRuntimeStyleFile
(String styleName, String fileName, String content) Writes a file into the style directory for the corresponding style.
-
Constructor Details
-
StyleFileAccess
public StyleFileAccess()
-
-
Method Details
-
findDirectories
Find all style - including the one that are externally store within the stream store. -
findFiles
Find all style - including the one that are externally store within the stream store. -
readStyleFile
Reads a file from style directory at runtime. First the style is expected to be part of the web archive. If not the style is checked in the stream store.- Parameters:
webPath
- The path within the webcontent, e.g. "/eclntjsfserver/styles/xyz/xyz.png"
-
readStyleUTF8File
Reads a file from style directory at runtime. First the style is expected to be part of the web archive. If not the style is checked in the stream store.- Parameters:
webPath
- The path within the webcontent, e.g. "/eclntjsfserver/styles/xyz/xyz.png"
-
writeRuntimeStyleFile
Writes a file into the style directory for the corresponding style. -
writeRuntimeStyleFile
Writes a file into the style directory for the corresponding style.
-