/[storm]/storm/org/nongnu/storm/pointers/PointerIndex.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/pointers/PointerIndex.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by benja, Thu May 22 21:31:00 2003 UTC revision 1.7 by benja, Thu May 22 22:03:52 2003 UTC
# Line 68  public class PointerIndex { Line 68  public class PointerIndex {
68          return b.getTarget();          return b.getTarget();
69      }      }
70    
71        public String getTitle(PointerId id)
72            throws IOException, GeneralSecurityException {
73            PointerBlock b = getPointerBlock(id);
74            if(b == null) return null;
75            return b.getName();
76        }
77    
78      public PointerBlock getPointerBlock(PointerId id)      public PointerBlock getPointerBlock(PointerId id)
79          throws IOException, GeneralSecurityException {          throws IOException, GeneralSecurityException {
80          if(dbg) p("Get: "+id);          if(dbg) p("Get: "+id);
# Line 108  public class PointerIndex { Line 115  public class PointerIndex {
115    
116      public void set(PointerId id, BlockId target, KeyPair keyPair)      public void set(PointerId id, BlockId target, KeyPair keyPair)
117          throws IOException, GeneralSecurityException {          throws IOException, GeneralSecurityException {
118          set(id, target, keyPair, null);          PointerBlock current = (PointerBlock)getPointerBlock(id);
119            if(current == null)
120                set(id, target, keyPair, null);
121            else
122                set(id, target, keyPair, current.getName());
123      }      }
124    
125      public void set(PointerId id, BlockId target, KeyPair keyPair,      public void set(PointerId id, BlockId target, KeyPair keyPair,

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26