Microsoft SDK for Java

IntArrayOutputStream Class

The IntArrayOutputStream Class of the com.ms.io package provides methods that create and manipulate output streams for primitive integers.

public class IntArrayOutputStream extends java.io.OutputStream
             implements Cloneable
{
  // Constructors
  public IntArrayOutputStream();
  public IntArrayOutputStream(int size);
  public IntArrayOutputStream(int[] stuff);

  // Methods
  public synchronized void append(int n);
  public synchronized void appendTo(IntArrayOutputStream out);
  public synchronized void appendTo(IntArrayOutputStream out,
        int s, int len);
  public synchronized int capacity();
  public IntArrayOutputStream copy();
  public synchronized int copyInto(int[] dest);
  public synchronized int elementAt(int ofs);
  public synchronized int elementFromEnd(int ofs);
  public synchronized int ensureCapacity(int capacity);
  public int[] getIntArray();
  public synchronized void getInts(int[] dest, int s, int len);
  public synchronized void insertElements(int ofs, int n);
  public boolean isEmpty();
  public synchronized void putElement(int ofs, int value);
  public synchronized int reduceCapacity(int capacity);
  public synchronized void removeElements(int ofs, int n);
  public void reset();
  public synchronized void setIntArray(int[] array);
  public synchronized void shrinkToFit();
  public int size();
  public synchronized int[] toIntArray();
  public String toString();
  public synchronized void truncate(int newsize);
  public void write(int[] src);
  public void write(int b) throws IOException;
  public synchronized void write(int[] src, int s, int len);
}

Hierarchy

OutputStream
  |
  +--IntArrayOutputStream

© 1999 Microsoft Corporation. All rights reserved. Terms of use.