public class FileContentManager extends Object implements ContentManager
ContentManager implementation for saving and loading from File.| Constructor and Description |
|---|
FileContentManager() |
| Modifier and Type | Method and Description |
|---|---|
Charset |
detectCharset(String location)
Detect the Charset of the content in the specified location.
|
String |
load(String location)
Loads content from the specified location.
|
boolean |
save(String content,
Charset charset,
String location)
|
boolean |
save(String content,
String location)
Saves content to the specified location.
|
public String load(String location) throws IOException
load in interface ContentManagerlocation - IOExceptionpublic boolean save(String content, Charset charset, String location)
save in interface ContentManagercontent - charset - location - public boolean save(String content, String location)
save in interface ContentManagercontent - location - public Charset detectCharset(String location)
ContentManagerdetectCharset in interface ContentManagerCopyright © 2013. All Rights Reserved.