1 24 25 package com.mckoi.store; 26 27 import java.io.OutputStream ; 28 import java.io.IOException ; 29 30 52 53 public interface AreaWriter { 54 55 58 long getID(); 59 60 65 OutputStream getOutputStream(); 66 67 70 int capacity(); 71 72 77 void finish() throws IOException ; 78 79 81 void put(byte b) throws IOException ; 82 83 void put(byte[] buf, int off, int len) throws IOException ; 84 85 void put(byte[] buf) throws IOException ; 86 87 void putShort(short s) throws IOException ; 88 89 void putInt(int i) throws IOException ; 90 91 void putLong(long l) throws IOException ; 92 93 void putChar(char c) throws IOException ; 94 95 } 96 97 | Popular Tags |