/[gzz]/gzz/lava/gzz/storm/util/DiffBlock.java
ViewVC logotype

Diff of /gzz/lava/gzz/storm/util/DiffBlock.java

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

revision 1.1 by benja, Fri Jan 17 23:35:52 2003 UTC revision 1.2 by benja, Sat Jan 18 17:37:25 2003 UTC
# Line 8  import java.util.*; Line 8  import java.util.*;
8    
9  public class DiffBlock extends StormFilerBlock {  public class DiffBlock extends StormFilerBlock {
10    
11      public DiffBlock() { super(null, null); }      public final Version.Diff diff;
12        public final Header822 headerFrom;
13        public final Header822 headerTo;
14    
15        public DiffBlock(Header822 header, Version.Diff diff,
16                         Header822 headerFrom, Header822 headerTo,
17                         VersionFormat format) {
18            super(header, format);
19    
20            this.diff = diff;
21            this.headerFrom = headerFrom;
22            this.headerTo = headerTo;
23        }
24    
25        public void writeTo(OutputStream out) throws IOException {
26            header.writeTo(out);
27            headerFrom.writeTo(out);
28            headerTo.writeTo(out);
29            format.writeDiff(out, diff);
30        }
31  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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