private OutputStream openOutput(String name) throws IOException {
    if (name.equals("-") || name.startsWith("-.")) {
      return context.out;
    }

    return new FileOutputStream(name);
  }
Opens and returns the named file for writing, treating "-" specially.

@param name {@code non-null;} the file name
@return {@code non-null;} the opened file
android/android_framework/dex-maker/src/main/java/com/android/dx/command/dexer/Main.java