Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_langtools
提交
597fdee4
D
dragonwell8_langtools
项目概览
openanolis
/
dragonwell8_langtools
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_langtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
597fdee4
编写于
10月 15, 2012
作者:
J
jjg
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8000666: javadoc should write directly to Writer instead of composing strings
Reviewed-by: bpatel
上级
94dac8ff
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
112 addition
and
58 deletion
+112
-58
src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java
.../tools/doclets/formats/html/AnnotationTypeWriterImpl.java
+3
-1
src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
...s/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
+2
-1
src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java
...ools/doclets/formats/html/ConstantsSummaryWriterImpl.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java
...com/sun/tools/doclets/formats/html/FrameOutputWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java
...lasses/com/sun/tools/doclets/formats/html/HelpWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
.../com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
...com/sun/tools/doclets/formats/html/PackageWriterImpl.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java
.../tools/doclets/formats/html/SerializedFormWriterImpl.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/markup/Comment.java
...es/com/sun/tools/doclets/formats/html/markup/Comment.java
+12
-7
src/share/classes/com/sun/tools/doclets/formats/html/markup/DocType.java
...es/com/sun/tools/doclets/formats/html/markup/DocType.java
+7
-2
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java
.../sun/tools/doclets/formats/html/markup/HtmlDocWriter.java
+2
-2
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java
...m/sun/tools/doclets/formats/html/markup/HtmlDocument.java
+7
-3
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
...s/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
+26
-17
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
...com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/formats/html/markup/RawHtml.java
...es/com/sun/tools/doclets/formats/html/markup/RawHtml.java
+14
-2
src/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java
.../sun/tools/doclets/formats/html/markup/StringContent.java
+8
-2
src/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java
.../tools/doclets/internal/toolkit/AnnotationTypeWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java
...s/com/sun/tools/doclets/internal/toolkit/ClassWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/ConstantsSummaryWriter.java
...ools/doclets/internal/toolkit/ConstantsSummaryWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/Content.java
...asses/com/sun/tools/doclets/internal/toolkit/Content.java
+15
-5
src/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java
.../tools/doclets/internal/toolkit/PackageSummaryWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/SerializedFormWriter.java
.../tools/doclets/internal/toolkit/SerializedFormWriter.java
+1
-1
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/Util.java
...ses/com/sun/tools/doclets/internal/toolkit/util/Util.java
+2
-2
未找到文件。
src/share/classes/com/sun/tools/doclets/formats/html/AnnotationTypeWriterImpl.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,8 @@
package
com.sun.tools.doclets.formats.html
;
import
java.io.IOException
;
import
com.sun.javadoc.*
;
import
com.sun.tools.doclets.formats.html.markup.*
;
import
com.sun.tools.doclets.internal.toolkit.*
;
...
...
@@ -193,7 +195,7 @@ public class AnnotationTypeWriterImpl extends SubWriterHolderWriter
/**
* {@inheritDoc}
*/
public
void
printDocument
(
Content
contentTree
)
{
public
void
printDocument
(
Content
contentTree
)
throws
IOException
{
printHtmlDocument
(
configuration
.
metakeywords
.
getMetaKeywords
(
annotationType
),
true
,
contentTree
);
}
...
...
src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,7 @@
package
com.sun.tools.doclets.formats.html
;
import
java.io.IOException
;
import
java.util.*
;
import
com.sun.javadoc.*
;
...
...
@@ -202,7 +203,7 @@ public class ClassWriterImpl extends SubWriterHolderWriter
/**
* {@inheritDoc}
*/
public
void
printDocument
(
Content
contentTree
)
{
public
void
printDocument
(
Content
contentTree
)
throws
IOException
{
printHtmlDocument
(
configuration
.
metakeywords
.
getMetaKeywords
(
classDoc
),
true
,
contentTree
);
}
...
...
src/share/classes/com/sun/tools/doclets/formats/html/ConstantsSummaryWriterImpl.java
浏览文件 @
597fdee4
...
...
@@ -303,7 +303,7 @@ public class ConstantsSummaryWriterImpl extends HtmlDocletWriter
/**
* {@inheritDoc}
*/
public
void
printDocument
(
Content
contentTree
)
{
public
void
printDocument
(
Content
contentTree
)
throws
IOException
{
printHtmlDocument
(
null
,
true
,
contentTree
);
}
}
src/share/classes/com/sun/tools/doclets/formats/html/FrameOutputWriter.java
浏览文件 @
597fdee4
...
...
@@ -95,7 +95,7 @@ public class FrameOutputWriter extends HtmlDocletWriter {
* Generate the contants in the "index.html" file. Print the frame details
* as well as warning if browser is not supporting the Html frames.
*/
protected
void
generateFrameFile
()
{
protected
void
generateFrameFile
()
throws
IOException
{
Content
frameset
=
getFrameDetails
();
if
(
configuration
.
windowtitle
.
length
()
>
0
)
{
printFramesetDocument
(
configuration
.
windowtitle
,
configuration
.
notimestamp
,
...
...
src/share/classes/com/sun/tools/doclets/formats/html/HelpWriter.java
浏览文件 @
597fdee4
...
...
@@ -79,7 +79,7 @@ public class HelpWriter extends HtmlDocletWriter {
/**
* Generate the help file contents.
*/
protected
void
generateHelpFile
()
{
protected
void
generateHelpFile
()
throws
IOException
{
String
title
=
configuration
.
getText
(
"doclet.Window_Help_title"
);
Content
body
=
getBody
(
true
,
getWindowTitle
(
title
));
addTop
(
body
);
...
...
src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java
浏览文件 @
597fdee4
...
...
@@ -361,7 +361,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
* @param body the body htmltree to be included in the document
*/
public
void
printHtmlDocument
(
String
[]
metakeywords
,
boolean
includeScript
,
Content
body
)
{
Content
body
)
throws
IOException
{
Content
htmlDocType
=
DocType
.
Transitional
();
Content
htmlComment
=
new
Comment
(
configuration
.
getText
(
"doclet.New_Page"
));
Content
head
=
new
HtmlTree
(
HtmlTag
.
HEAD
);
...
...
@@ -391,7 +391,7 @@ public class HtmlDocletWriter extends HtmlDocWriter {
head
,
body
);
Content
htmlDocument
=
new
HtmlDocument
(
htmlDocType
,
htmlComment
,
htmlTree
);
print
(
htmlDocument
.
toString
()
);
htmlDocument
.
write
(
this
,
true
);
}
/**
...
...
src/share/classes/com/sun/tools/doclets/formats/html/PackageWriterImpl.java
浏览文件 @
597fdee4
...
...
@@ -254,7 +254,7 @@ public class PackageWriterImpl extends HtmlDocletWriter
/**
* {@inheritDoc}
*/
public
void
printDocument
(
Content
contentTree
)
{
public
void
printDocument
(
Content
contentTree
)
throws
IOException
{
printHtmlDocument
(
configuration
.
metakeywords
.
getMetaKeywords
(
packageDoc
),
true
,
contentTree
);
}
...
...
src/share/classes/com/sun/tools/doclets/formats/html/SerializedFormWriterImpl.java
浏览文件 @
597fdee4
...
...
@@ -42,7 +42,7 @@ import com.sun.tools.doclets.internal.toolkit.util.DocletAbortException;
* @author Atul M Dambalkar
*/
public
class
SerializedFormWriterImpl
extends
SubWriterHolderWriter
implements
com
.
sun
.
tools
.
doclets
.
internal
.
toolkit
.
SerializedFormWriter
{
implements
SerializedFormWriter
{
private
static
final
String
FILE_NAME
=
"serialized-form.html"
;
...
...
@@ -214,7 +214,7 @@ public class SerializedFormWriterImpl extends SubWriterHolderWriter
/**
* {@inheritDoc}
*/
public
void
printDocument
(
Content
serializedTree
)
{
public
void
printDocument
(
Content
serializedTree
)
throws
IOException
{
printHtmlDocument
(
null
,
true
,
serializedTree
);
}
...
...
src/share/classes/com/sun/tools/doclets/formats/html/markup/Comment.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,9 @@
package
com.sun.tools.doclets.formats.html.markup
;
import
java.io.IOException
;
import
java.io.Writer
;
import
com.sun.tools.doclets.internal.toolkit.Content
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
...
...
@@ -38,7 +41,7 @@ import com.sun.tools.doclets.internal.toolkit.util.*;
*
* @author Bhavesh Patel
*/
public
class
Comment
extends
Content
{
public
class
Comment
extends
Content
{
private
String
commentText
;
...
...
@@ -85,11 +88,13 @@ public class Comment extends Content{
/**
* {@inheritDoc}
*/
public
void
write
(
StringBuilder
contentBuilder
)
{
if
(!
endsWithNewLine
(
contentBuilder
))
contentBuilder
.
append
(
DocletConstants
.
NL
);
contentBuilder
.
append
(
"<!-- "
);
contentBuilder
.
append
(
commentText
);
contentBuilder
.
append
(
" -->"
+
DocletConstants
.
NL
);
@Override
public
boolean
write
(
Writer
out
,
boolean
atNewline
)
throws
IOException
{
if
(!
atNewline
)
out
.
write
(
DocletConstants
.
NL
);
out
.
write
(
"<!-- "
);
out
.
write
(
commentText
);
out
.
write
(
" -->"
+
DocletConstants
.
NL
);
return
true
;
}
}
src/share/classes/com/sun/tools/doclets/formats/html/markup/DocType.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,9 @@
package
com.sun.tools.doclets.formats.html.markup
;
import
java.io.IOException
;
import
java.io.Writer
;
import
com.sun.tools.doclets.internal.toolkit.Content
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
...
...
@@ -112,7 +115,9 @@ public class DocType extends Content{
/**
* {@inheritDoc}
*/
public
void
write
(
StringBuilder
contentBuilder
)
{
contentBuilder
.
append
(
docType
);
@Override
public
boolean
write
(
Writer
out
,
boolean
atNewline
)
throws
IOException
{
out
.
write
(
docType
);
return
true
;
// guaranteed by constructor
}
}
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java
浏览文件 @
597fdee4
...
...
@@ -325,7 +325,7 @@ public abstract class HtmlDocWriter extends HtmlWriter {
* @param frameset the frameset to be added to the HTML document
*/
public
void
printFramesetDocument
(
String
title
,
boolean
noTimeStamp
,
Content
frameset
)
{
Content
frameset
)
throws
IOException
{
Content
htmlDocType
=
DocType
.
Frameset
();
Content
htmlComment
=
new
Comment
(
configuration
.
getText
(
"doclet.New_Page"
));
Content
head
=
new
HtmlTree
(
HtmlTag
.
HEAD
);
...
...
@@ -345,7 +345,7 @@ public abstract class HtmlDocWriter extends HtmlWriter {
head
,
frameset
);
Content
htmlDocument
=
new
HtmlDocument
(
htmlDocType
,
htmlComment
,
htmlTree
);
print
(
htmlDocument
.
toString
()
);
htmlDocument
.
write
(
this
,
true
);
}
/**
...
...
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java
浏览文件 @
597fdee4
...
...
@@ -25,7 +25,10 @@
package
com.sun.tools.doclets.formats.html.markup
;
import
java.io.IOException
;
import
java.io.Writer
;
import
java.util.*
;
import
com.sun.tools.doclets.internal.toolkit.Content
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
...
...
@@ -74,7 +77,7 @@ public class HtmlDocument extends Content {
*
* @param htmlContent html content to be added
*/
public
void
addContent
(
Content
htmlContent
)
{
public
final
void
addContent
(
Content
htmlContent
)
{
if
(
htmlContent
.
isValid
())
docContent
.
add
(
htmlContent
);
}
...
...
@@ -101,8 +104,9 @@ public class HtmlDocument extends Content {
/**
* {@inheritDoc}
*/
public
void
write
(
StringBuilder
contentBuilder
)
{
public
boolean
write
(
Writer
out
,
boolean
atNewline
)
throws
IOException
{
for
(
Content
c
:
docContent
)
c
.
write
(
contentBuilder
);
atNewline
=
c
.
write
(
out
,
atNewline
);
return
atNewline
;
}
}
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlTree.java
浏览文件 @
597fdee4
...
...
@@ -25,7 +25,10 @@
package
com.sun.tools.doclets.formats.html.markup
;
import
java.io.IOException
;
import
java.io.Writer
;
import
java.util.*
;
import
com.sun.tools.doclets.internal.toolkit.Content
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
...
...
@@ -756,35 +759,41 @@ public class HtmlTree extends Content {
/**
* {@inheritDoc}
*/
public
void
write
(
StringBuilder
contentBuilder
)
{
if
(!
isInline
()
&&
!
endsWithNewLine
(
contentBuilder
))
contentBuilder
.
append
(
DocletConstants
.
NL
);
@Override
public
boolean
write
(
Writer
out
,
boolean
atNewline
)
throws
IOException
{
if
(!
isInline
()
&&
!
atNewline
)
out
.
write
(
DocletConstants
.
NL
);
String
tagString
=
htmlTag
.
toString
();
contentBuilder
.
append
(
"<"
);
contentBuilder
.
append
(
tagString
);
out
.
write
(
"<"
);
out
.
write
(
tagString
);
Iterator
<
HtmlAttr
>
iterator
=
attrs
.
keySet
().
iterator
();
HtmlAttr
key
;
String
value
=
""
;
while
(
iterator
.
hasNext
())
{
key
=
iterator
.
next
();
value
=
attrs
.
get
(
key
);
contentBuilder
.
append
(
" "
);
contentBuilder
.
append
(
key
.
toString
());
out
.
write
(
" "
);
out
.
write
(
key
.
toString
());
if
(!
value
.
isEmpty
())
{
contentBuilder
.
append
(
"=\""
);
contentBuilder
.
append
(
value
);
contentBuilder
.
append
(
"\""
);
out
.
write
(
"=\""
);
out
.
write
(
value
);
out
.
write
(
"\""
);
}
}
contentBuilder
.
append
(
">"
);
out
.
write
(
">"
);
boolean
nl
=
false
;
for
(
Content
c
:
content
)
c
.
write
(
contentBuilder
);
nl
=
c
.
write
(
out
,
nl
);
if
(
htmlTag
.
endTagRequired
())
{
contentBuilder
.
append
(
"</"
);
contentBuilder
.
append
(
tagString
);
contentBuilder
.
append
(
">"
);
out
.
write
(
"</"
);
out
.
write
(
tagString
);
out
.
write
(
">"
);
}
if
(!
isInline
())
{
out
.
write
(
DocletConstants
.
NL
);
return
true
;
}
else
{
return
false
;
}
if
(!
isInline
())
contentBuilder
.
append
(
DocletConstants
.
NL
);
}
}
src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java
浏览文件 @
597fdee4
...
...
@@ -266,7 +266,7 @@ public class HtmlWriter extends PrintWriter {
}
/**
* Print the script code to be embeded before the </HEAD> tag.
* Print the script code to be embed
d
ed before the </HEAD> tag.
*/
protected
void
printWinTitleScript
(
String
winTitle
){
if
(
winTitle
!=
null
&&
winTitle
.
length
()
>
0
)
{
...
...
src/share/classes/com/sun/tools/doclets/formats/html/markup/RawHtml.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,9 @@
package
com.sun.tools.doclets.formats.html.markup
;
import
java.io.IOException
;
import
java.io.Writer
;
import
com.sun.tools.doclets.internal.toolkit.Content
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
...
...
@@ -87,7 +90,16 @@ public class RawHtml extends Content{
/**
* {@inheritDoc}
*/
public
void
write
(
StringBuilder
contentBuilder
)
{
contentBuilder
.
append
(
rawHtmlContent
);
public
String
toString
()
{
return
rawHtmlContent
;
}
/**
* {@inheritDoc}
*/
@Override
public
boolean
write
(
Writer
out
,
boolean
atNewline
)
throws
IOException
{
out
.
write
(
rawHtmlContent
);
return
rawHtmlContent
.
endsWith
(
DocletConstants
.
NL
);
}
}
src/share/classes/com/sun/tools/doclets/formats/html/markup/StringContent.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,9 @@
package
com.sun.tools.doclets.formats.html.markup
;
import
java.io.IOException
;
import
java.io.Writer
;
import
com.sun.tools.doclets.internal.toolkit.Content
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
...
...
@@ -98,7 +101,10 @@ public class StringContent extends Content{
/**
* {@inheritDoc}
*/
public
void
write
(
StringBuilder
contentBuilder
)
{
contentBuilder
.
append
(
stringContent
);
@Override
public
boolean
write
(
Writer
out
,
boolean
atNewline
)
throws
IOException
{
String
s
=
stringContent
.
toString
();
out
.
write
(
s
);
return
s
.
endsWith
(
DocletConstants
.
NL
);
}
}
src/share/classes/com/sun/tools/doclets/internal/toolkit/AnnotationTypeWriter.java
浏览文件 @
597fdee4
...
...
@@ -153,7 +153,7 @@ public interface AnnotationTypeWriter {
*
* @param contentTree content tree that will be printed as a document
*/
public
void
printDocument
(
Content
contentTree
);
public
void
printDocument
(
Content
contentTree
)
throws
IOException
;
/**
* Close the writer.
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/ClassWriter.java
浏览文件 @
597fdee4
...
...
@@ -180,7 +180,7 @@ public interface ClassWriter {
*
* @param contentTree content tree that will be printed as a document
*/
public
void
printDocument
(
Content
contentTree
);
public
void
printDocument
(
Content
contentTree
)
throws
IOException
;
/**
* Close the writer.
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/ConstantsSummaryWriter.java
浏览文件 @
597fdee4
...
...
@@ -139,6 +139,6 @@ public interface ConstantsSummaryWriter {
*
* @param contentTree content tree which should be printed
*/
public
abstract
void
printDocument
(
Content
contentTree
);
public
abstract
void
printDocument
(
Content
contentTree
)
throws
IOException
;
}
src/share/classes/com/sun/tools/doclets/internal/toolkit/Content.java
浏览文件 @
597fdee4
...
...
@@ -25,6 +25,10 @@
package
com.sun.tools.doclets.internal.toolkit
;
import
java.io.IOException
;
import
java.io.StringWriter
;
import
java.io.Writer
;
import
com.sun.tools.doclets.internal.toolkit.util.*
;
/**
...
...
@@ -44,10 +48,16 @@ public abstract class Content {
*
* @return string representation of the content
*/
@Override
public
String
toString
()
{
StringBuilder
contentBuilder
=
new
StringBuilder
();
write
(
contentBuilder
);
return
contentBuilder
.
toString
();
StringWriter
out
=
new
StringWriter
();
try
{
write
(
out
,
true
);
}
catch
(
IOException
e
)
{
// cannot happen from StringWriter
throw
new
DocletAbortException
();
}
return
out
.
toString
();
}
/**
...
...
@@ -65,10 +75,10 @@ public abstract class Content {
public
abstract
void
addContent
(
String
stringContent
);
/**
* Writes content to a
StringBuild
er.
* Writes content to a
writ
er.
*
*/
public
abstract
void
write
(
StringBuilder
contentBuilder
)
;
public
abstract
boolean
write
(
Writer
writer
,
boolean
atNewline
)
throws
IOException
;
/**
* Returns true if the content is empty.
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java
浏览文件 @
597fdee4
...
...
@@ -115,7 +115,7 @@ public interface PackageSummaryWriter {
*
* @param contentTree the content tree that will be printed
*/
public
abstract
void
printDocument
(
Content
contentTree
);
public
abstract
void
printDocument
(
Content
contentTree
)
throws
IOException
;
/**
* Close the writer.
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/SerializedFormWriter.java
浏览文件 @
597fdee4
...
...
@@ -151,7 +151,7 @@ public interface SerializedFormWriter {
*
* @param serializedTree the content tree that will be printed
*/
public
abstract
void
printDocument
(
Content
serializedTree
);
public
abstract
void
printDocument
(
Content
serializedTree
)
throws
IOException
;
/**
* Write the serialized form for a given field.
...
...
src/share/classes/com/sun/tools/doclets/internal/toolkit/util/Util.java
浏览文件 @
597fdee4
...
...
@@ -650,9 +650,9 @@ public class Util {
fos
=
new
FileOutputStream
(
filename
);
}
if
(
docencoding
==
null
)
{
return
new
OutputStreamWriter
(
fos
);
return
new
BufferedWriter
(
new
OutputStreamWriter
(
fos
)
);
}
else
{
return
new
OutputStreamWriter
(
fos
,
docencoding
);
return
new
BufferedWriter
(
new
OutputStreamWriter
(
fos
,
docencoding
)
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录