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