http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/ini/ConfigFileBuilder.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/ini/ConfigFileBuilder.html b/content/site/apidocs/org/apache/juneau/ini/ConfigFileBuilder.html index 4c602d7..e8fb14d 100644 --- a/content/site/apidocs/org/apache/juneau/ini/ConfigFileBuilder.html +++ b/content/site/apidocs/org/apache/juneau/ini/ConfigFileBuilder.html @@ -108,7 +108,7 @@ var activeTableTab = "activeTableTab"; <li class="blockList"> <hr> <br> -<pre>public class <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.37">ConfigFileBuilder</a> +<pre>public class <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.38">ConfigFileBuilder</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> <div class="block">Builder for creating instances of <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini"><code>ConfigFiles</code></a>. @@ -252,7 +252,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>ConfigFileBuilder</h4> -<pre>public <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.37">ConfigFileBuilder</a>()</pre> +<pre>public <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.38">ConfigFileBuilder</a>()</pre> </li> </ul> </li> @@ -269,7 +269,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>encoder</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.55">encoder</a>(<a href="../../../../org/apache/juneau/ini/Encoder.html" title="interface in org.apache.juneau.ini">Encoder</a> encoder)</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.56">encoder</a>(<a href="../../../../org/apache/juneau/ini/Encoder.html" title="interface in org.apache.juneau.ini">Encoder</a> encoder)</pre> <div class="block">Specify the encoder to use for encoded config file entries (e.g. <js>"mySecret*={...}"</js>). <p> @@ -288,7 +288,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>serializer</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.69">serializer</a>(<a href="../../../../org/apache/juneau/serializer/WriterSerializer.html" title="class in org.apache.juneau.serializer">WriterSerializer</a> serializer)</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.70">serializer</a>(<a href="../../../../org/apache/juneau/serializer/WriterSerializer.html" title="class in org.apache.juneau.serializer">WriterSerializer</a> serializer)</pre> <div class="block">Specify the serializer to use for serializing POJOs when using <a href="../../../../org/apache/juneau/ini/ConfigFile.html#put-java.lang.String-java.lang.Object-"><code>ConfigFile.put(String, Object)</code></a>. <p> @@ -307,7 +307,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>parser</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.83">parser</a>(<a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a> parser)</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.84">parser</a>(<a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser">ReaderParser</a> parser)</pre> <div class="block">Specify the parser to use for parsing POJOs when using <a href="../../../../org/apache/juneau/ini/ConfigFile.html#getObject-java.lang.String-java.lang.Class-"><code>ConfigFile.getObject(String,Class)</code></a>. <p> @@ -326,7 +326,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>charset</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.97">charset</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> charset)</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.98">charset</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> charset)</pre> <div class="block">Specify the config file character encoding. <p> @@ -345,7 +345,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>paths</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.114">paths</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... searchPaths)</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.115">paths</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... searchPaths)</pre> <div class="block">Specify the search paths for config files. <p> @@ -367,7 +367,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readOnly</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.129">readOnly</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.130">readOnly</a>()</pre> <div class="block">Make <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini"><code>ConfigFiles</code></a> read-only. <p> @@ -384,7 +384,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>createIfNotExists</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.142">createIfNotExists</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFileBuilder.html" title="class in org.apache.juneau.ini">ConfigFileBuilder</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.143">createIfNotExists</a>()</pre> <div class="block">Create config files if they cannot be found on the file system. <p> @@ -401,7 +401,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>build</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.155">build</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path) +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.156">build</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Returns the config file with the specified absolute or relative path.</div> <dl> @@ -421,7 +421,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>build</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.165">build</a>() +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.166">build</a>() throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Create a new empty config file not backed by any file.</div> <dl> @@ -438,7 +438,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>build</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.179">build</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f) +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.180">build</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Create a new config file backed by the specified file. @@ -460,7 +460,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>build</h4> -<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.190">build</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r) +<pre>public <a href="../../../../org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini">ConfigFile</a> <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.191">build</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</a> r) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Create a new config file not backed by a file.</div> <dl> @@ -479,7 +479,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>main</h4> -<pre>public static void <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.265">main</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] args)</pre> +<pre>public static void <a href="../../../../src-html/org/apache/juneau/ini/ConfigFileBuilder.html#line.266">main</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] args)</pre> <div class="block">Implements command-line features for working with INI configuration files. <p>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/internal/FileUtils.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/internal/FileUtils.html b/content/site/apidocs/org/apache/juneau/internal/FileUtils.html index a1b5794..c46ee92 100644 --- a/content/site/apidocs/org/apache/juneau/internal/FileUtils.html +++ b/content/site/apidocs/org/apache/juneau/internal/FileUtils.html @@ -108,7 +108,7 @@ var activeTableTab = "activeTableTab"; <li class="blockList"> <hr> <br> -<pre>public class <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.22">FileUtils</a> +<pre>public class <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.24">FileUtils</a> extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> <div class="block">File utilities.</div> </li> @@ -224,7 +224,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>FileUtils</h4> -<pre>public <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.22">FileUtils</a>()</pre> +<pre>public <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.24">FileUtils</a>()</pre> </li> </ul> </li> @@ -241,7 +241,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>mkdirs</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.32">mkdirs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f, +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.34">mkdirs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f, boolean clean)</pre> <div class="block">Same as <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true#mkdirs--" title="class or interface in java.io"><code>File.mkdirs()</code></a> except throws a RuntimeExeption if directory could not be created.</div> <dl> @@ -261,7 +261,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>mkdirs</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.54">mkdirs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.56">mkdirs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> path, boolean clean)</pre> <div class="block">Same as <a href="../../../../org/apache/juneau/internal/FileUtils.html#mkdirs-java.lang.String-boolean-"><code>mkdirs(String, boolean)</code></a> but uses String path.</div> <dl> @@ -279,7 +279,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>delete</h4> -<pre>public static boolean <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.65">delete</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</pre> +<pre>public static boolean <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.67">delete</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</pre> <div class="block">Recursively deletes a file or directory.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -295,7 +295,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>create</h4> -<pre>public static void <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.85">create</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</pre> +<pre>public static void <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.87">create</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</pre> <div class="block">Creates a file if it doesn't already exist using <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true#createNewFile--" title="class or interface in java.io"><code>File.createNewFile()</code></a>. <p> @@ -312,7 +312,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>modifyTimestamp</h4> -<pre>public static void <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.104">modifyTimestamp</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</pre> +<pre>public static void <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.106">modifyTimestamp</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> f)</pre> <div class="block">Updates the modified timestamp on the specified file. <p> @@ -329,7 +329,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>createTempFile</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.134">createTempFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name) +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.136">createTempFile</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Create a temporary file with the specified name. @@ -355,7 +355,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getBaseName</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.147">getBaseName</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.149">getBaseName</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> <div class="block">Strips the extension from a file name.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -371,7 +371,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>getExtension</h4> -<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.162">getExtension</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> +<pre>public static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/internal/FileUtils.html#line.164">getExtension</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name)</pre> <div class="block">Returns the extension from a file name.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/parser/ParseException.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ParseException.html b/content/site/apidocs/org/apache/juneau/parser/ParseException.html index 6e05406..a9c8bf0 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ParseException.html +++ b/content/site/apidocs/org/apache/juneau/parser/ParseException.html @@ -125,9 +125,13 @@ var activeTableTab = "activeTableTab"; <dt>All Implemented Interfaces:</dt> <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> </dl> +<dl> +<dt>Direct Known Subclasses:</dt> +<dd><a href="../../../../org/apache/juneau/xml/XmlParseException.html" title="class in org.apache.juneau.xml">XmlParseException</a></dd> +</dl> <hr> <br> -<pre>public final class <a href="../../../../src-html/org/apache/juneau/parser/ParseException.html#line.26">ParseException</a> +<pre>public class <a href="../../../../src-html/org/apache/juneau/parser/ParseException.html#line.26">ParseException</a> extends <a href="../../../../org/apache/juneau/FormattedException.html" title="class in org.apache.juneau">FormattedException</a></pre> <div class="block">Exception that indicates invalid syntax encountered during parsing.</div> <dl> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/parser/ParserGroup.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ParserGroup.html b/content/site/apidocs/org/apache/juneau/parser/ParserGroup.html index 9344977..e810426 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ParserGroup.html +++ b/content/site/apidocs/org/apache/juneau/parser/ParserGroup.html @@ -294,8 +294,11 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getParserMatch</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/ParserMatch.html" title="class in org.apache.juneau.parser">ParserMatch</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.118">getParserMatch</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentTypeHeader)</pre> -<div class="block">Searches the group for a parser that can handle the specified <l>Content-Type</l> header value.</div> +<pre>public <a href="../../../../org/apache/juneau/parser/ParserMatch.html" title="class in org.apache.juneau.parser">ParserMatch</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.121">getParserMatch</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentTypeHeader)</pre> +<div class="block">Searches the group for a parser that can handle the specified <l>Content-Type</l> header value. + + <p> + The returned object includes both the parser and media type that matched.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>contentTypeHeader</code> - The HTTP <l>Content-Type</l> header value.</dd> @@ -310,7 +313,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getParserMatch</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/ParserMatch.html" title="class in org.apache.juneau.parser">ParserMatch</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.140">getParserMatch</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> mediaType)</pre> +<pre>public <a href="../../../../org/apache/juneau/parser/ParserMatch.html" title="class in org.apache.juneau.parser">ParserMatch</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.143">getParserMatch</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> mediaType)</pre> <div class="block">Same as <a href="../../../../org/apache/juneau/parser/ParserGroup.html#getParserMatch-java.lang.String-"><code>getParserMatch(String)</code></a> but matches using a <a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http"><code>MediaType</code></a> instance.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -326,7 +329,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getParser</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.150">getParser</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentTypeHeader)</pre> +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.153">getParser</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentTypeHeader)</pre> <div class="block">Same as <a href="../../../../org/apache/juneau/parser/ParserGroup.html#getParserMatch-java.lang.String-"><code>getParserMatch(String)</code></a> but returns just the matched parser.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -342,7 +345,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getParser</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.161">getParser</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> mediaType)</pre> +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.164">getParser</a>(<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a> mediaType)</pre> <div class="block">Same as <a href="../../../../org/apache/juneau/parser/ParserGroup.html#getParserMatch-org.apache.juneau.http.MediaType-"><code>getParserMatch(MediaType)</code></a> but returns just the matched parser.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -358,7 +361,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>getSupportedMediaTypes</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.174">getSupportedMediaTypes</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/http/MediaType.html" title="class in org.apache.juneau.http">MediaType</a>> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.177">getSupportedMediaTypes</a>()</pre> <div class="block">Returns the media types that all parsers in this group can handle <p> @@ -375,7 +378,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>createPropertyStore</h4> -<pre>public <a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.186">createPropertyStore</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/PropertyStore.html" title="class in org.apache.juneau">PropertyStore</a> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.189">createPropertyStore</a>()</pre> <div class="block">Returns a copy of the property store that was used to create the parsers in this group. <p> @@ -392,7 +395,7 @@ extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>getParsers</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a>> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.195">getParsers</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a>> <a href="../../../../src-html/org/apache/juneau/parser/ParserGroup.html#line.198">getParsers</a>()</pre> <div class="block">Returns the parsers in this group.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/parser/package-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/package-summary.html b/content/site/apidocs/org/apache/juneau/parser/package-summary.html index 4cb3137..00fa8a1 100644 --- a/content/site/apidocs/org/apache/juneau/parser/package-summary.html +++ b/content/site/apidocs/org/apache/juneau/parser/package-summary.html @@ -276,12 +276,21 @@ The following example shows a simple parser that converts input streams to images using standard JRE classes. </p> <p class='bcode'> + <jd>/** Parser for converting byte streams to images */</jd> <ja>@Consumes</ja>(<js>"image/png,image/jpeg"</js>) - <jk>public static class</jk> ImageParser <jk>extends</jk> InputStreamParser { - <ja>@Override</ja> - <jk>public</jk> <T> T parse(InputStream in, ClassMeta<T> type, ParserSession session) <jk>throws</jk> ParseException, IOException { - BufferedImage image = ImageIO.<jsm>read</jsm>(in); - <jk>return</jk> (T)image; + <jk>public class</jk> ImageParser <jk>extends</jk> InputStreamParser { + + <jd>/** + * Constructor. + * <ja>@param</ja> propertyStore The property store containing all the settings for this object. + */</jd> + <jk>public</jk> ImageParser(PropertyStore propertyStore) { + <jk>super</jk>(propertyStore); + } + + <ja>@Override</ja> <jc>/* Parser */</jc> + <jk>protected</jk> <T> T doParse(ParserSession session, ClassMeta<T> type) <jk>throws</jk> Exception { + <jk>return</jk> (T)ImageIO.<jsm>read</jsm>(session.getInputStream()); } } </p> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/rest/RestConfig.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/RestConfig.html b/content/site/apidocs/org/apache/juneau/rest/RestConfig.html index bdef888..3ef3d38 100644 --- a/content/site/apidocs/org/apache/juneau/rest/RestConfig.html +++ b/content/site/apidocs/org/apache/juneau/rest/RestConfig.html @@ -494,7 +494,7 @@ implements <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletCon </tr> <tr id="i54" class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/juneau/rest/RestConfig.html" title="class in org.apache.juneau.rest">RestConfig</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestConfig.html#setHtmlStyleImport-java.lang.String-">setHtmlStyleImport</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestConfig.html#setHtmlStylesheet-java.lang.String-">setHtmlStylesheet</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</code> <div class="block">Sets the CSS URL in the HTML CSS style section.</div> </td> </tr> @@ -1962,13 +1962,13 @@ implements <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletCon </dl> </li> </ul> -<a name="setHtmlStyleImport-java.lang.String-"> +<a name="setHtmlStylesheet-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>setHtmlStyleImport</h4> -<pre>public <a href="../../../../org/apache/juneau/rest/RestConfig.html" title="class in org.apache.juneau.rest">RestConfig</a> <a href="../../../../src-html/org/apache/juneau/rest/RestConfig.html#line.1407">setHtmlStyleImport</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre> +<h4>setHtmlStylesheet</h4> +<pre>public <a href="../../../../org/apache/juneau/rest/RestConfig.html" title="class in org.apache.juneau.rest">RestConfig</a> <a href="../../../../src-html/org/apache/juneau/rest/RestConfig.html#line.1407">setHtmlStylesheet</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value)</pre> <div class="block">Sets the CSS URL in the HTML CSS style section. <p> @@ -1985,7 +1985,7 @@ implements <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/ServletCon by <a href="../../../../org/apache/juneau/UriResolver.html" title="class in org.apache.juneau"><code>UriResolver</code></a>. <p> - This is the programmatic equivalent to the <a href="../../../../org/apache/juneau/rest/annotation/HtmlDoc.html#styleImport--"><code>@HtmlDoc.styleImport()</code></a> annotation.</div> + This is the programmatic equivalent to the <a href="../../../../org/apache/juneau/rest/annotation/HtmlDoc.html#stylesheet--"><code>@HtmlDoc.stylesheet()</code></a> annotation.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>value</code> - The CSS URL in the HTML CSS style section.</dd> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/d35b70d1/content/site/apidocs/org/apache/juneau/rest/RestContext.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/rest/RestContext.html b/content/site/apidocs/org/apache/juneau/rest/RestContext.html index 05ea9df..bf52951 100644 --- a/content/site/apidocs/org/apache/juneau/rest/RestContext.html +++ b/content/site/apidocs/org/apache/juneau/rest/RestContext.html @@ -459,7 +459,7 @@ extends <a href="../../../../org/apache/juneau/Context.html" title="class in org </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestContext.html#getHtmlStyleImport--">getHtmlStyleImport</a></span>()</code> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/rest/RestContext.html#getHtmlStylesheet--">getHtmlStylesheet</a></span>()</code> <div class="block">The HTML page stylesheet URL.</div> </td> </tr> @@ -1496,17 +1496,17 @@ extends <a href="../../../../org/apache/juneau/Context.html" title="class in org </dl> </li> </ul> -<a name="getHtmlStyleImport--"> +<a name="getHtmlStylesheet--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>getHtmlStyleImport</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestContext.html#line.1107">getHtmlStyleImport</a>()</pre> +<h4>getHtmlStylesheet</h4> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/juneau/rest/RestContext.html#line.1107">getHtmlStylesheet</a>()</pre> <div class="block">The HTML page stylesheet URL. <p> - Defined by the <a href="../../../../org/apache/juneau/rest/annotation/HtmlDoc.html#styleImport--"><code>HtmlDoc.styleImport()</code></a> annotation or <a href="../../../../org/apache/juneau/rest/RestConfig.html#setHtmlStyleImport-java.lang.String-"><code>RestConfig.setHtmlStyleImport(String)</code></a> method.</div> + Defined by the <a href="../../../../org/apache/juneau/rest/annotation/HtmlDoc.html#stylesheet--"><code>HtmlDoc.stylesheet()</code></a> annotation or <a href="../../../../org/apache/juneau/rest/RestConfig.html#setHtmlStylesheet-java.lang.String-"><code>RestConfig.setHtmlStylesheet(String)</code></a> method.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The HTML page CSS URL.</dd>
