Package org.bgerp.util

# Class IOUtils

java.lang.Object
org.bgerp.util.IOUtils

public class IOUtils extends Object

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IOUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static final byte[]`
  `read(String path)`
  Reads byte array out of file with `path` case if exists, otherwise treats `path` as Java resource and reads it.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### IOUtils

    public IOUtils()

- ## Method Details

  - ### read

    public static final byte[] read(String path) throws IOException
    Reads byte array out of file with `path` case if exists, otherwise treats `path` as Java resource and reads it.
    Parameters:
      `path` - file path or Java resource identifier, examples: `/org/bgerp/util/SomeFile.data` or `/tmp/SomeFile.data`.
    Returns:
    Throws:
      `IOException`