public class DatastoreContentManager
extends java.lang.Object
implements org.jledit.ContentManager
Constructor and Description |
---|
DatastoreContentManager(DataStore dataStore) |
Modifier and Type | Method and Description |
---|---|
java.nio.charset.Charset |
detectCharset(java.lang.String location)
Detect the Charset of the content in the specified location.
|
java.lang.String |
load(java.lang.String location)
Loads content from the specified location.
|
boolean |
save(java.lang.String content,
java.nio.charset.Charset charset,
java.lang.String location)
Saves the
String content to the specified location using the specified Charset . |
boolean |
save(java.lang.String content,
java.lang.String location)
Saves content to the specified location.
|
public DatastoreContentManager(DataStore dataStore)
public java.lang.String load(java.lang.String location) throws java.io.IOException
load
in interface org.jledit.ContentManager
location
- java.io.IOException
public boolean save(java.lang.String content, java.lang.String location)
save
in interface org.jledit.ContentManager
content
- location
- public boolean save(java.lang.String content, java.nio.charset.Charset charset, java.lang.String location)
String
content to the specified location using the specified Charset
.save
in interface org.jledit.ContentManager
content
- charset
- location
- public java.nio.charset.Charset detectCharset(java.lang.String location)
detectCharset
in interface org.jledit.ContentManager
location
- Copyright © 2016 Red Hat. All Rights Reserved.