You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/11 21:37:38 UTC

[commons-fileupload] branch master updated (59c7c13 -> 50796d3)

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git


    from 59c7c13  FileItemInputIterator now extends IOIterator<FileItemInput>
     new 92022f0  Better interface name
     new 50796d3  Javadoc

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/commons/fileupload2/FileItem.java     | 2 +-
 .../{FileItemHeadersSupport.java => FileItemHeadersProvider.java}  | 4 ++--
 .../main/java/org/apache/commons/fileupload2/FileItemInput.java    | 2 +-
 .../main/java/org/apache/commons/fileupload2/RequestContext.java   | 7 +++----
 4 files changed, 7 insertions(+), 8 deletions(-)
 rename commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/{FileItemHeadersSupport.java => FileItemHeadersProvider.java} (94%)


[commons-fileupload] 02/02: Javadoc

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git

commit 50796d31f9d63c0f4f03e65404d01bd00c9ef438
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 11 17:37:34 2023 -0400

    Javadoc
---
 .../main/java/org/apache/commons/fileupload2/RequestContext.java   | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/RequestContext.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/RequestContext.java
index ca87751..6e07f9a 100644
--- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/RequestContext.java
+++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/RequestContext.java
@@ -39,10 +39,10 @@ public interface RequestContext {
     String getCharacterEncoding();
 
     /**
-     * Gets the character encoding for the request.
+     * Gets the character encoding for the request or null if unspecified.
      *
-     * @return The character encoding for the request.
-     * @throws UnsupportedCharsetException If the named charset is unavailable (unchecked exception).
+     * @return The character encoding for the request or null.
+     * @throws UnsupportedCharsetException If the named Charset is unavailable.
      */
     default Charset getCharset() throws UnsupportedCharsetException {
         return Charsets.toCharset(getCharacterEncoding(), null);
@@ -66,7 +66,6 @@ public interface RequestContext {
      * Gets the input stream for the request.
      *
      * @return The input stream for the request.
-     *
      * @throws IOException if a problem occurs.
      */
     InputStream getInputStream() throws IOException;


[commons-fileupload] 01/02: Better interface name

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git

commit 92022f0b80097059a0d2e2e53061a828165f8836
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 11 17:37:28 2023 -0400

    Better interface name
---
 .../src/main/java/org/apache/commons/fileupload2/FileItem.java        | 2 +-
 .../{FileItemHeadersSupport.java => FileItemHeadersProvider.java}     | 4 ++--
 .../src/main/java/org/apache/commons/fileupload2/FileItemInput.java   | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItem.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItem.java
index 2fb7f26..ebc74c0 100644
--- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItem.java
+++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItem.java
@@ -40,7 +40,7 @@ import java.nio.file.Path;
  * {@code javax.activation.DataSource} with minimal additional work.
  * </p>
  */
-public interface FileItem extends FileItemHeadersSupport {
+public interface FileItem extends FileItemHeadersProvider {
 
     /**
      * Deletes the underlying storage for a file item, including deleting any associated temporary disk file. Although this storage will be deleted
diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemHeadersSupport.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemHeadersProvider.java
similarity index 94%
rename from commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemHeadersSupport.java
rename to commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemHeadersProvider.java
index 7f69be1..0e8714a 100644
--- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemHeadersSupport.java
+++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemHeadersProvider.java
@@ -17,12 +17,12 @@
 package org.apache.commons.fileupload2;
 
 /**
- * Accepts headers for an item type.
+ * Provides access to headers.
  *
  * @see FileItem
  * @see FileItemInput
  */
-public interface FileItemHeadersSupport {
+public interface FileItemHeadersProvider {
 
     /**
      * Gets the collection of headers defined locally within this item.
diff --git a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemInput.java b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemInput.java
index 6fb0cd5..ca089ee 100644
--- a/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemInput.java
+++ b/commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/FileItemInput.java
@@ -32,7 +32,7 @@ import java.io.InputStream;
  * {@link java.util.Iterator#hasNext()} on the iterator, you discard all data, which hasn't been read so far from the previous data.
  * </p>
  */
-public interface FileItemInput extends FileItemHeadersSupport {
+public interface FileItemInput extends FileItemHeadersProvider {
 
     /**
      * This exception is thrown, if an attempt is made to read data from the {@link InputStream}, which has been returned by