You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/05/25 22:05:02 UTC
svn commit: r778489 - in
/maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io:
ModelReader.java ModelWriter.java
Author: bentmann
Date: Mon May 25 20:05:02 2009
New Revision: 778489
URL: http://svn.apache.org/viewvc?rev=778489&view=rev
Log:
o Clarified API
Modified:
maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelReader.java
maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelWriter.java
Modified: maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelReader.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelReader.java?rev=778489&r1=778488&r2=778489&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelReader.java (original)
+++ maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelReader.java Mon May 25 20:05:02 2009
@@ -53,7 +53,8 @@
throws IOException;
/**
- * Reads the model from the specified character reader.
+ * Reads the model from the specified character reader. The reader will be automatically closed before the method
+ * returns.
*
* @param input The reader to deserialize the model from, must not be {@code null}.
* @param options The options to use for deserialization, may be {@code null} to use the default values.
@@ -64,7 +65,8 @@
throws IOException;
/**
- * Reads the model from the specified byte stream.
+ * Reads the model from the specified byte stream. The stream will be automatically closed before the method
+ * returns.
*
* @param input The stream to deserialize the model from, must not be {@code null}.
* @param options The options to use for deserialization, may be {@code null} to use the default values.
Modified: maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelWriter.java
URL: http://svn.apache.org/viewvc/maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelWriter.java?rev=778489&r1=778488&r2=778489&view=diff
==============================================================================
--- maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelWriter.java (original)
+++ maven/components/branches/MNG-2766/maven-model-builder/src/main/java/org/apache/maven/model/io/ModelWriter.java Mon May 25 20:05:02 2009
@@ -48,7 +48,8 @@
throws IOException;
/**
- * Writes the supplied model to the specified character writer.
+ * Writes the supplied model to the specified character writer. The writer will be automatically closed before the
+ * method returns.
*
* @param output The writer to serialize the model to, must not be {@code null}.
* @param options The options to use for serialization, may be {@code null} to use the default values.
@@ -59,7 +60,8 @@
throws IOException;
/**
- * Writes the supplied model to the specified byte stream.
+ * Writes the supplied model to the specified byte stream. The stream will be automatically closed before the method
+ * returns.
*
* @param output The stream to serialize the model to, must not be {@code null}.
* @param options The options to use for serialization, may be {@code null} to use the default values.