Method
writeHeader
(DataOutputStream stream)
Source from the content-addressed store, hash-verified
| 119 | } |
| 120 | |
| 121 | public void writeHeader(DataOutputStream stream) throws IOException { |
| 122 | // write the size |
| 123 | stream.writeInt(size); |
| 124 | |
| 125 | // write the type |
| 126 | stream.writeInt(type); |
| 127 | |
| 128 | // for full atoms, write version and flags |
| 129 | if (isFull) { |
| 130 | stream.writeInt(version<<24 | flags); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | protected abstract void writeFields(DataOutputStream stream) throws IOException; |
| 135 | |
Tested by
no test coverage detected