Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
9b58b71a
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看板
提交
9b58b71a
编写于
7月 20, 2013
作者:
D
darcy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8020971: Fix doclint issues in java.nio.*
Reviewed-by: lancea
上级
3e61843e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
52 addition
and
30 deletion
+52
-30
src/share/classes/java/nio/channels/package-info.java
src/share/classes/java/nio/channels/package-info.java
+5
-5
src/share/classes/java/nio/charset/Charset.java
src/share/classes/java/nio/charset/Charset.java
+10
-14
src/share/classes/java/nio/charset/MalformedInputException.java
...are/classes/java/nio/charset/MalformedInputException.java
+14
-1
src/share/classes/java/nio/charset/UnmappableCharacterException.java
...lasses/java/nio/charset/UnmappableCharacterException.java
+14
-1
src/share/classes/java/nio/file/package-info.java
src/share/classes/java/nio/file/package-info.java
+9
-9
未找到文件。
src/share/classes/java/nio/channels/package-info.java
浏览文件 @
9b58b71a
/*
/*
* Copyright (c) 2001, 201
0
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
* <a name="channels"></a>
* <a name="channels"></a>
*
*
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists channels and their descriptions">
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists channels and their descriptions">
* <tr><th
><p align="left">Channels</p></th><th><p align="left">Description</p>
</th></tr>
* <tr><th
align="left">Channels</th><th align="left">Description
</th></tr>
* <tr><td valign=top><tt><i>{@link java.nio.channels.Channel}</i></tt></td>
* <tr><td valign=top><tt><i>{@link java.nio.channels.Channel}</i></tt></td>
* <td>A nexus for I/O operations</td></tr>
* <td>A nexus for I/O operations</td></tr>
* <tr><td valign=top><tt> <i>{@link java.nio.channels.ReadableByteChannel}</i></tt></td>
* <tr><td valign=top><tt> <i>{@link java.nio.channels.ReadableByteChannel}</i></tt></td>
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
* write them to a given writable byte channel.
* write them to a given writable byte channel.
*
*
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists file channels and their descriptions">
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists file channels and their descriptions">
* <tr><th
><p align="left">File channels</p></th><th><p align="left">Description</p>
</th></tr>
* <tr><th
align="left">File channels</th><th align="left">Description
</th></tr>
* <tr><td valign=top><tt>{@link java.nio.channels.FileChannel}</tt></td>
* <tr><td valign=top><tt>{@link java.nio.channels.FileChannel}</tt></td>
* <td>Reads, writes, maps, and manipulates files</td></tr>
* <td>Reads, writes, maps, and manipulates files</td></tr>
* <tr><td valign=top><tt>{@link java.nio.channels.FileLock}</tt></td>
* <tr><td valign=top><tt>{@link java.nio.channels.FileLock}</tt></td>
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
*
*
* <a name="multiplex"></a>
* <a name="multiplex"></a>
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists multiplexed, non-blocking channels and their descriptions">
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists multiplexed, non-blocking channels and their descriptions">
* <tr><th
><p align="left">Multiplexed, non-blocking I/O</p></th><th><p align="left">Description</p>
</th></tr>
* <tr><th
align="left">Multiplexed, non-blocking I/O</th><th align="left"><p>Description
</th></tr>
* <tr><td valign=top><tt>{@link java.nio.channels.SelectableChannel}</tt></td>
* <tr><td valign=top><tt>{@link java.nio.channels.SelectableChannel}</tt></td>
* <td>A channel that can be multiplexed</td></tr>
* <td>A channel that can be multiplexed</td></tr>
* <tr><td valign=top><tt> {@link java.nio.channels.DatagramChannel}</tt></td>
* <tr><td valign=top><tt> {@link java.nio.channels.DatagramChannel}</tt></td>
...
@@ -225,7 +225,7 @@
...
@@ -225,7 +225,7 @@
* <a name="async"></a>
* <a name="async"></a>
*
*
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists asynchronous channels and their descriptions">
* <blockquote><table cellspacing=1 cellpadding=0 summary="Lists asynchronous channels and their descriptions">
* <tr><th
><p align="left">Asynchronous I/O</p></th><th><p align="left">Description</p>
</th></tr>
* <tr><th
align="left">Asynchronous I/O</th><th align="left">Description
</th></tr>
* <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousFileChannel}</tt></td>
* <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousFileChannel}</tt></td>
* <td>An asynchronous channel for reading, writing, and manipulating a file</td></tr>
* <td>An asynchronous channel for reading, writing, and manipulating a file</td></tr>
* <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousSocketChannel}</tt></td>
* <tr><td valign=top><tt>{@link java.nio.channels.AsynchronousSocketChannel}</tt></td>
...
...
src/share/classes/java/nio/charset/Charset.java
浏览文件 @
9b58b71a
/*
/*
* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -65,7 +65,7 @@ import sun.security.action.GetPropertyAction;
...
@@ -65,7 +65,7 @@ import sun.security.action.GetPropertyAction;
* concurrent threads.
* concurrent threads.
*
*
*
*
* <a name="names"><
a name="charenc"
>
* <a name="names"><
/a><a name="charenc"></a
>
* <h2>Charset names</h2>
* <h2>Charset names</h2>
*
*
* <p> Charsets are named by strings composed of the following characters:
* <p> Charsets are named by strings composed of the following characters:
...
@@ -111,21 +111,17 @@ import sun.security.action.GetPropertyAction;
...
@@ -111,21 +111,17 @@ import sun.security.action.GetPropertyAction;
* The aliases of a charset are returned by the {@link #aliases() aliases}
* The aliases of a charset are returned by the {@link #aliases() aliases}
* method.
* method.
*
*
* <a name="hn">
* <p><a name="hn">Some charsets have an <i>historical name</i> that is defined for
*
* compatibility with previous versions of the Java platform.</a> A charset's
* <p> Some charsets have an <i>historical name</i> that is defined for
* compatibility with previous versions of the Java platform. A charset's
* historical name is either its canonical name or one of its aliases. The
* historical name is either its canonical name or one of its aliases. The
* historical name is returned by the <tt>getEncoding()</tt> methods of the
* historical name is returned by the <tt>getEncoding()</tt> methods of the
* {@link java.io.InputStreamReader#getEncoding InputStreamReader} and {@link
* {@link java.io.InputStreamReader#getEncoding InputStreamReader} and {@link
* java.io.OutputStreamWriter#getEncoding OutputStreamWriter} classes.
* java.io.OutputStreamWriter#getEncoding OutputStreamWriter} classes.
*
*
* <a name="iana">
* <p><a name="iana">If a charset listed in the <a
*
* <p> If a charset listed in the <a
* href="http://www.iana.org/assignments/character-sets"><i>IANA Charset
* href="http://www.iana.org/assignments/character-sets"><i>IANA Charset
* Registry</i></a> is supported by an implementation of the Java platform then
* Registry</i></a> is supported by an implementation of the Java platform then
* its canonical name must be the name listed in the registry. Many charsets
* its canonical name must be the name listed in the registry.
</a>
Many charsets
* are given more than one name in the registry, in which case the registry
* are given more than one name in the registry, in which case the registry
* identifies one of the names as <i>MIME-preferred</i>. If a charset has more
* identifies one of the names as <i>MIME-preferred</i>. If a charset has more
* than one registry name then its canonical name must be the MIME-preferred
* than one registry name then its canonical name must be the MIME-preferred
...
@@ -142,15 +138,15 @@ import sun.security.action.GetPropertyAction;
...
@@ -142,15 +138,15 @@ import sun.security.action.GetPropertyAction;
*
*
* <h2>Standard charsets</h2>
* <h2>Standard charsets</h2>
*
*
* <a name="standard">
*
*
* <p> Every implementation of the Java platform is required to support the
*
* following standard charsets. Consult the release documentation for your
* <p><a name="standard">Every implementation of the Java platform is required to support the
* following standard charsets.</a> Consult the release documentation for your
* implementation to see if any other charsets are supported. The behavior
* implementation to see if any other charsets are supported. The behavior
* of such optional charsets may differ between implementations.
* of such optional charsets may differ between implementations.
*
*
* <blockquote><table width="80%" summary="Description of standard charsets">
* <blockquote><table width="80%" summary="Description of standard charsets">
* <tr><th
><p align="left">Charset</p></th><th><p align="left">Description</p>
</th></tr>
* <tr><th
align="left">Charset</th><th align="left">Description
</th></tr>
* <tr><td valign=top><tt>US-ASCII</tt></td>
* <tr><td valign=top><tt>US-ASCII</tt></td>
* <td>Seven-bit ASCII, a.k.a. <tt>ISO646-US</tt>,
* <td>Seven-bit ASCII, a.k.a. <tt>ISO646-US</tt>,
* a.k.a. the Basic Latin block of the Unicode character set</td></tr>
* a.k.a. the Basic Latin block of the Unicode character set</td></tr>
...
...
src/share/classes/java/nio/charset/MalformedInputException.java
浏览文件 @
9b58b71a
/*
/*
* Copyright (c) 2000, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -42,14 +42,27 @@ public class MalformedInputException
...
@@ -42,14 +42,27 @@ public class MalformedInputException
private
int
inputLength
;
private
int
inputLength
;
/**
* Constructs an {@code MalformedInputException} with the given
* length.
* @param inputLength the length of the input
*/
public
MalformedInputException
(
int
inputLength
)
{
public
MalformedInputException
(
int
inputLength
)
{
this
.
inputLength
=
inputLength
;
this
.
inputLength
=
inputLength
;
}
}
/**
* Returns the length of the input.
* @return the length of the input
*/
public
int
getInputLength
()
{
public
int
getInputLength
()
{
return
inputLength
;
return
inputLength
;
}
}
/**
* Returns the message.
* @return the message
*/
public
String
getMessage
()
{
public
String
getMessage
()
{
return
"Input length = "
+
inputLength
;
return
"Input length = "
+
inputLength
;
}
}
...
...
src/share/classes/java/nio/charset/UnmappableCharacterException.java
浏览文件 @
9b58b71a
/*
/*
* Copyright (c) 2001, 20
07
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 20
13
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -42,14 +42,27 @@ public class UnmappableCharacterException
...
@@ -42,14 +42,27 @@ public class UnmappableCharacterException
private
int
inputLength
;
private
int
inputLength
;
/**
* Constructs an {@code UnmappableCharacterException} with the
* given length.
* @param inputLength the length of the input
*/
public
UnmappableCharacterException
(
int
inputLength
)
{
public
UnmappableCharacterException
(
int
inputLength
)
{
this
.
inputLength
=
inputLength
;
this
.
inputLength
=
inputLength
;
}
}
/**
* Returns the length of the input.
* @return the length of the input
*/
public
int
getInputLength
()
{
public
int
getInputLength
()
{
return
inputLength
;
return
inputLength
;
}
}
/**
* Returns the message.
* @return the message
*/
public
String
getMessage
()
{
public
String
getMessage
()
{
return
"Input length = "
+
inputLength
;
return
"Input length = "
+
inputLength
;
}
}
...
...
src/share/classes/java/nio/file/package-info.java
浏览文件 @
9b58b71a
/*
/*
* Copyright (c) 2007, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 201
3
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -33,8 +33,8 @@
...
@@ -33,8 +33,8 @@
* package is used by service provider implementors wishing to extend the
* package is used by service provider implementors wishing to extend the
* platform default provider, or to construct other provider implementations. </p>
* platform default provider, or to construct other provider implementations. </p>
*
*
* <
a name="links"><h3>Symbolic Links</h3></a
>
* <
h3><a name="links">Symbolic Links</a></h3
>
* Many operating systems and file systems support for <em>symbolic links</em>.
*
<p>
Many operating systems and file systems support for <em>symbolic links</em>.
* A symbolic link is a special file that serves as a reference to another file.
* A symbolic link is a special file that serves as a reference to another file.
* For the most part, symbolic links are transparent to applications and
* For the most part, symbolic links are transparent to applications and
* operations on symbolic links are automatically redirected to the <em>target</em>
* operations on symbolic links are automatically redirected to the <em>target</em>
...
@@ -45,8 +45,8 @@
...
@@ -45,8 +45,8 @@
* that are semantically close but support for these other types of links is
* that are semantically close but support for these other types of links is
* not included in this package. </p>
* not included in this package. </p>
*
*
* <
a name="interop"><h3>Interoperability</h3></a
>
* <
h3><a name="interop">Interoperability</a></h3
>
* The {@link java.io.File} class defines the {@link java.io.File#toPath
*
<p>
The {@link java.io.File} class defines the {@link java.io.File#toPath
* toPath} method to construct a {@link java.nio.file.Path} by converting
* toPath} method to construct a {@link java.nio.file.Path} by converting
* the abstract path represented by the {@code java.io.File} object. The resulting
* the abstract path represented by the {@code java.io.File} object. The resulting
* {@code Path} can be used to operate on the same file as the {@code File}
* {@code Path} can be used to operate on the same file as the {@code File}
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
* and {@code java.io.File} objects. </p>
* and {@code java.io.File} objects. </p>
*
*
* <h3>Visibility</h3>
* <h3>Visibility</h3>
* The view of the files and file system provided by classes in this package are
*
<p>
The view of the files and file system provided by classes in this package are
* guaranteed to be consistent with other views provided by other instances in the
* guaranteed to be consistent with other views provided by other instances in the
* same Java virtual machine. The view may or may not, however, be consistent with
* same Java virtual machine. The view may or may not, however, be consistent with
* the view of the file system as seen by other concurrently running programs due
* the view of the file system as seen by other concurrently running programs due
...
@@ -65,8 +65,8 @@
...
@@ -65,8 +65,8 @@
* or on some other machine. The exact nature of any such inconsistencies are
* or on some other machine. The exact nature of any such inconsistencies are
* system-dependent and are therefore unspecified. </p>
* system-dependent and are therefore unspecified. </p>
*
*
* <
a name="integrity"><h3>Synchronized I/O File Integrity</h3></a
>
* <
h3><a name="integrity">Synchronized I/O File Integrity</a></h3
>
* The {@link java.nio.file.StandardOpenOption#SYNC SYNC} and {@link
*
<p>
The {@link java.nio.file.StandardOpenOption#SYNC SYNC} and {@link
* java.nio.file.StandardOpenOption#DSYNC DSYNC} options are used when opening a file
* java.nio.file.StandardOpenOption#DSYNC DSYNC} options are used when opening a file
* to require that updates to the file are written synchronously to the underlying
* to require that updates to the file are written synchronously to the underlying
* storage device. In the case of the default provider, and the file resides on
* storage device. In the case of the default provider, and the file resides on
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
* specific. </p>
* specific. </p>
*
*
* <h3>General Exceptions</h3>
* <h3>General Exceptions</h3>
* Unless otherwise noted, passing a {@code null} argument to a constructor
*
<p>
Unless otherwise noted, passing a {@code null} argument to a constructor
* or method of any class or interface in this package will cause a {@link
* or method of any class or interface in this package will cause a {@link
* java.lang.NullPointerException NullPointerException} to be thrown. Additionally,
* java.lang.NullPointerException NullPointerException} to be thrown. Additionally,
* invoking a method with a collection containing a {@code null} element will
* invoking a method with a collection containing a {@code null} element will
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录