Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
700c308b
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
700c308b
编写于
7月 27, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8021609: Fix doclint issues in java.nio.charset
Reviewed-by: alanb
上级
01c5bbe6
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
src/share/classes/java/nio/charset/Charset-X-Coder.java.template
...re/classes/java/nio/charset/Charset-X-Coder.java.template
+18
-18
未找到文件。
src/share/classes/java/nio/charset/Charset-X-Coder.java.template
浏览文件 @
700c308b
...
...
@@ -41,7 +41,7 @@ import java.util.Arrays;
*
An
engine
that
can
transform
a
sequence
of
$
itypesPhrase
$
into
a
sequence
of
*
$
otypesPhrase
$.
*
*
<
a
name
=
"steps"
>
*
<
a
name
=
"steps"
>
</
a
>
*
*
<
p
>
The
input
$
itype
$
sequence
is
provided
in
a
$
itype
$
buffer
or
a
series
*
of
such
buffers
.
The
output
$
otype
$
sequence
is
written
to
a
$
otype
$
buffer
...
...
@@ -76,22 +76,22 @@ import java.util.Arrays;
*
examine
this
object
and
fill
the
input
buffer
,
flush
the
output
buffer
,
or
*
attempt
to
recover
from
$
a
$
$
coding
$
error
,
as
appropriate
,
and
try
again
.
*
*
<
a
name
=
"ce"
>
*
<
a
name
=
"ce"
>
</
a
>
*
*
<
p
>
There
are
two
general
types
of
$
coding
$
errors
.
If
the
input
$
itype
$
*
sequence
is
$
notLegal
$
then
the
input
is
considered
<
i
>
malformed
</
i
>.
If
*
the
input
$
itype
$
sequence
is
legal
but
cannot
be
mapped
to
a
valid
*
$
outSequence
$
then
an
<
i
>
unmappable
character
</
i
>
has
been
encountered
.
*
*
<
a
name
=
"cae"
>
*
<
a
name
=
"cae"
>
</
a
>
*
*
<
p
>
How
$
a
$
$
coding
$
error
is
handled
depends
upon
the
action
requested
for
*
that
type
of
error
,
which
is
described
by
an
instance
of
the
{@
link
*
CodingErrorAction
}
class
.
The
possible
error
actions
are
to
{@
link
*
CodingErrorAction
#
IGNORE
</
code
>
ignore
<
code
>}
the
erroneous
input
,
{@
link
*
CodingErrorAction
#
REPORT
</
code
>
report
<
code
>
}
the
error
to
the
invoker
via
*
the
returned
{@
link
CoderResult
}
object
,
or
{@
link
CodingErrorAction
#
REPLACE
*
</
code
>
replace
<
code
>
}
the
erroneous
input
with
the
current
value
of
the
*
CodingErrorAction
}
class
.
The
possible
error
actions
are
to
{@
link
plain
*
CodingErrorAction
#
IGNORE
ignore
}
the
erroneous
input
,
{@
linkplain
*
CodingErrorAction
#
REPORT
report
}
the
error
to
the
invoker
via
*
the
returned
{@
link
CoderResult
}
object
,
or
{@
link
plain
CodingErrorAction
#
REPLACE
*
replace
}
the
erroneous
input
with
the
current
value
of
the
*
replacement
$
replTypeName
$.
The
replacement
*
#
if
[
encoder
]
...
...
@@ -106,7 +106,7 @@ import java.util.Arrays;
* replaceWith} method.
*
* <p> The default action for malformed-input and unmappable-character errors
* is to {@link
CodingErrorAction#REPORT </code>report<code>
} them. The
* is to {@link
plain CodingErrorAction#REPORT report
} them. The
* malformed-input error action may be changed via the {@link
* #onMalformedInput(CodingErrorAction) onMalformedInput} method; the
* unmappable-character action may be changed via the {@link
...
...
@@ -177,7 +177,7 @@ public abstract class Charset$Coder$ {
* @param replacement
* The initial replacement; must not be <tt>null</tt>, must have
* non-zero length, must not be longer than max$ItypesPerOtype$,
* and must be {@link
#isLegalReplacement </code>legal<code>
}
* and must be {@link
plain #isLegalReplacement legal
}
*
* @throws IllegalArgumentException
* If the preconditions on the parameters do not hold
...
...
@@ -276,7 +276,7 @@ public abstract class Charset$Coder$ {
* The new replacement; must not be <tt>null</tt>, must have
* non-zero length, must not be longer than the value returned by
* the {@link #max$ItypesPerOtype$() max$ItypesPerOtype$} method, and
* must be {@link #isLegalReplacement
</code>legal<code>
}
* must be {@link #isLegalReplacement
legal
}
#end[encoder]
*
* @return This $coder$
...
...
@@ -495,24 +495,24 @@ public abstract class Charset$Coder$ {
*
typically
done
by
draining
any
$
code
$
d
$
otype
$
s
from
the
output
*
buffer
.
</
p
></
li
>
*
*
<
li
><
p
>
A
{@
link
CoderResult
#
malformedForLength
*
</
code
>
malformed
-
input
<
code
>
}
result
indicates
that
a
malformed
-
input
*
<
li
><
p
>
A
{@
link
plain
CoderResult
#
malformedForLength
*
malformed
-
input
}
result
indicates
that
a
malformed
-
input
*
error
has
been
detected
.
The
malformed
$
itype
$
s
begin
at
the
input
*
buffer
's (possibly incremented) position; the number of malformed
* $itype$s may be determined by invoking the result object'
s
{@
link
*
CoderResult
#
length
()
length
}
method
.
This
case
applies
only
if
the
*
{@
link
#
onMalformedInput
</
code
>
malformed
action
<
code
>
}
of
this
$
coder
$
*
{@
link
plain
#
onMalformedInput
malformed
action
}
of
this
$
coder
$
*
is
{@
link
CodingErrorAction
#
REPORT
};
otherwise
the
malformed
input
*
will
be
ignored
or
replaced
,
as
requested
.
</
p
></
li
>
*
*
<
li
><
p
>
An
{@
link
CoderResult
#
unmappableForLength
*
</
code
>
unmappable
-
character
<
code
>
}
result
indicates
that
an
*
<
li
><
p
>
An
{@
link
plain
CoderResult
#
unmappableForLength
*
unmappable
-
character
}
result
indicates
that
an
*
unmappable
-
character
error
has
been
detected
.
The
$
itype
$
s
that
*
$
code
$
the
unmappable
character
begin
at
the
input
buffer
's (possibly
* incremented) position; the number of such $itype$s may be determined
* by invoking the result object'
s
{@
link
CoderResult
#
length
()
length
}
*
method
.
This
case
applies
only
if
the
{@
link
#
onUnmappableCharacter
*
</
code
>
unmappable
action
<
code
>
}
of
this
$
coder
$
is
{@
link
*
method
.
This
case
applies
only
if
the
{@
link
plain
#
onUnmappableCharacter
*
unmappable
action
}
of
this
$
coder
$
is
{@
link
*
CodingErrorAction
#
REPORT
};
otherwise
the
unmappable
character
will
be
*
ignored
or
replaced
,
as
requested
.
</
p
></
li
>
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录