public class ZookeeperContentManager
extends java.lang.Object
implements org.jledit.ContentManager
| Constructor and Description |
|---|
ZookeeperContentManager(org.apache.curator.framework.CuratorFramework curator) |
| 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 ZookeeperContentManager(org.apache.curator.framework.CuratorFramework curator)
public java.lang.String load(java.lang.String location)
throws java.io.IOException
load in interface org.jledit.ContentManagerlocation - java.io.IOExceptionpublic boolean save(java.lang.String content,
java.lang.String location)
save in interface org.jledit.ContentManagercontent - 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.ContentManagercontent - charset - location - public java.nio.charset.Charset detectCharset(java.lang.String location)
detectCharset in interface org.jledit.ContentManagerlocation - Copyright © 2014 Red Hat. All Rights Reserved.