Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ij.io
Class RoiEncoder

    java.lang.Object
      ij.io.RoiEncoder

public class RoiEncoder
extends java.lang.Object

Saves an ROI to a file or stream. RoiDecoder.java has a description of the file format.

See Also:
  `RoiDecoder`, `RoiReader`

Constructor Summary
`RoiEncoder(java.io.OutputStream f)` Creates an RoiEncoder using the specified OutputStream.
`RoiEncoder(java.lang.String path)` Creates an RoiEncoder using the specified path.

Method Summary
`void` | `write(Roi roi)` Save the Roi to the file of stream.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RoiEncoder

    public RoiEncoder(java.lang.String path)

  Creates an RoiEncoder using the specified path.

### RoiEncoder

    public RoiEncoder(java.io.OutputStream f)

  Creates an RoiEncoder using the specified OutputStream.

Method Detail

### write

    public void write(Roi roi)
               throws java.io.IOException

  Save the Roi to the file of stream.

  Throws:
    `java.io.IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD