View Javadoc

1   /***
2    * Copyright 2006 Joseph M. Ferner
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    *    
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.fernsroth.easyio;
17  
18  import java.io.IOException;
19  
20  /***
21   * 
22   * @author Joseph M. Ferner (Near Infinity Corporation)
23   */
24  public interface IOutputStream {
25      /***
26       * @param b the data.
27       * @throws IOException 
28       */
29      void write(int b) throws IOException;
30  
31      /***
32       * writes data.
33       * @param buffer the data to write.
34       * @throws IOException 
35       */
36      void write(byte[] buffer) throws IOException;
37  
38      /***
39       * writes data.
40       * @param buffer the data to write.
41       * @param start the start.
42       * @param length the length.
43       * @throws IOException 
44       */
45      void write(byte[] buffer, int start, int length) throws IOException;
46  }