Author: toad
Date: 2006-12-15 20:56:28 +0000 (Fri, 15 Dec 2006)
New Revision: 11423
Modified:
trunk/freenet/src/freenet/clients/http/Bookmark.java
Log:
Format
Modified: trunk/freenet/src/freenet/clients/http/Bookmark.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/Bookmark.java 2006-12-15
20:51:26 UTC (rev 11422)
+++ trunk/freenet/src/freenet/clients/http/Bookmark.java 2006-12-15
20:56:28 UTC (rev 11423)
@@ -7,47 +7,48 @@
import java.net.MalformedURLException;
public class Bookmark {
- FreenetURI key;
- String desc;
-
- Bookmark(String k, String d) throws MalformedURLException {
- this.key = new FreenetURI(k);
- this.desc = d;
+ FreenetURI key;
+
+ String desc;
+
+ Bookmark(String k, String d) throws MalformedURLException {
+ this.key = new FreenetURI(k);
+ this.desc = d;
+ }
+
+ Bookmark(String from) throws MalformedURLException {
+ int eqpos = from.indexOf("=");
+
+ if (eqpos < 0) {
+ this.key = new FreenetURI(from);
+ this.desc = from;
+ } else {
+ this.key = new FreenetURI(from.substring(0, eqpos));
+ this.desc = from.substring(eqpos + 1);
}
-
- Bookmark(String from) throws MalformedURLException {
- int eqpos = from.indexOf("=");
-
- if (eqpos < 0) {
- this.key = new FreenetURI(from);
- this.desc = from;
- } else {
- this.key = new FreenetURI(from.substring(0,
eqpos));
- this.desc = from.substring(eqpos + 1);
- }
+ }
+
+ public String getKey() {
+ return key.toString();
+ }
+
+ public void setKey(FreenetURI uri) {
+ key = uri;
+ }
+
+ public String getKeyType() {
+ return key.getKeyType();
+ }
+
+ public String getDesc() {
+ if (desc.equals("")) {
+ return "Unnamed Bookmark";
+ } else {
+ return desc;
}
-
- public String getKey() {
- return key.toString();
- }
-
- public void setKey(FreenetURI uri) {
- key = uri;
- }
-
- public String getKeyType() {
- return key.getKeyType();
- }
-
- public String getDesc() {
- if (desc.equals("")) {
- return "Unnamed Bookmark";
- } else {
- return desc;
- }
- }
-
- public String toString() {
- return this.key.toString() + '=' + this.desc;
- }
- }
\ No newline at end of file
+ }
+
+ public String toString() {
+ return this.key.toString() + '=' + this.desc;
+ }
+}
\ No newline at end of file