< prev index next >
src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory.java
Print this page
*** 205,215 ****
if (location != DocumentationTool.Location.DOCUMENTATION_OUTPUT)
throw new IllegalStateException();
try {
OutputStream out = getFileObjectForOutput(path).openOutputStream();
! return new BufferedWriter(new OutputStreamWriter(out, configuration.docencoding));
} catch (IOException e) {
throw new DocFileIOException(this, DocFileIOException.Mode.WRITE, e);
}
}
--- 205,216 ----
if (location != DocumentationTool.Location.DOCUMENTATION_OUTPUT)
throw new IllegalStateException();
try {
OutputStream out = getFileObjectForOutput(path).openOutputStream();
! String docencoding = configuration.getOptions().docEncoding;
! return new BufferedWriter(new OutputStreamWriter(out, docencoding));
} catch (IOException e) {
throw new DocFileIOException(this, DocFileIOException.Mode.WRITE, e);
}
}
*** 326,336 ****
}
/**
* Resolve a relative file against the given output location.
* @param locn Currently, only
! * {@link DocumentationTool.Location.DOCUMENTATION_OUTPUT} is supported.
*/
@Override
public DocFile resolveAgainst(Location locn) {
if (locn != DocumentationTool.Location.DOCUMENTATION_OUTPUT)
throw new IllegalArgumentException();
--- 327,337 ----
}
/**
* Resolve a relative file against the given output location.
* @param locn Currently, only
! * {@link DocumentationTool.Location#DOCUMENTATION_OUTPUT} is supported.
*/
@Override
public DocFile resolveAgainst(Location locn) {
if (locn != DocumentationTool.Location.DOCUMENTATION_OUTPUT)
throw new IllegalArgumentException();
< prev index next >