Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / misc / env / src / main / java / org / onap / aaf / misc / env / Data.java
index 155dfc7..4c64e5d 100644 (file)
@@ -42,7 +42,7 @@ import java.io.Writer;
  * the "options" available on several functions control the output of this particular call.  When \r
  * blank, they will default to the DataFactory defaults.  When present, they override this\r
  * particular call.\r
- *     The available options are "pretty" (for XML and JSON) and "fragment" (XML only concept), which drops\r
+ *     The available options are "pretty" (for XML and JSON) and "fragment" (XML only concept), which drops\r
  * the "<?xml ...?>" header so you can create larger XML documents from the output. \r
  * \r
  * @author Jonathan\r
@@ -50,64 +50,64 @@ import java.io.Writer;
  * @param <T>\r
  */\r
 public interface Data<T> {\r
-       static enum TYPE {XML,JSON,JAXB,RAW,DEFAULT};\r
-       // can & with 0xFFFF;\r
-//     public static final int XML = 0x1;\r
-//     public static final int JSON = 0x2;\r
-//     public static final int JAXB = 0x4;\r
-//     public static final int RAW = 0x1000;\r
-       \r
-       // can & with 0xF00000;\r
-       public static final int PRETTY = 0x100000;\r
-       public static final int FRAGMENT = 0x200000;\r
+    static enum TYPE {XML,JSON,JAXB,RAW,DEFAULT};\r
+    // can & with 0xFFFF;\r
+//    public static final int XML = 0x1;\r
+//    public static final int JSON = 0x2;\r
+//    public static final int JAXB = 0x4;\r
+//    public static final int RAW = 0x1000;\r
+    \r
+    // can & with 0xF00000;\r
+    public static final int PRETTY = 0x100000;\r
+    public static final int FRAGMENT = 0x200000;\r
 \r
-       /**\r
-        * Respond with the String if it exists, or marshal the String and pass the result back.\r
-        \r
-        * However, use the Env the Data Object was created with.\r
-        \r
-        * @return String\r
-        * @throws APIException\r
-        */\r
-       public String asString() throws APIException;\r
+    /**\r
+     * Respond with the String if it exists, or marshal the String and pass the result back.\r
+     * \r
+     * However, use the Env the Data Object was created with.\r
+     * \r
+     * @return String\r
+     * @throws APIException\r
+     */\r
+    public String asString() throws APIException;\r
 \r
-       /**\r
-        * Respond with the Object of type {@literal <T>} if it exists, or unmarshal from String \r
-        * and pass the result back.<p>\r
-        *\r
-        * However, use the Env the Data Object was created with.\r
-        \r
-        * @return T\r
-        * @throws APIException\r
-        */\r
-       public T asObject() throws APIException;\r
+    /**\r
+     * Respond with the Object of type {@literal <T>} if it exists, or unmarshal from String \r
+     * and pass the result back.<p>\r
+     *\r
+     * However, use the Env the Data Object was created with.\r
+     * \r
+     * @return T\r
+     * @throws APIException\r
+     */\r
+    public T asObject() throws APIException;\r
 \r
-       /**\r
-        * Set a particular option on an existing Out \r
-        \r
-        * if int is negative, it should remove the option\r
-        * @param option\r
-        */\r
-       public Data<T> option(int option);\r
+    /**\r
+     * Set a particular option on an existing Out \r
+     * \r
+     * if int is negative, it should remove the option\r
+     * @param option\r
+     */\r
+    public Data<T> option(int option);\r
 \r
-       public Data<T> to(OutputStream os) throws APIException, IOException;\r
-       public Data<T> to(Writer writer) throws APIException, IOException;\r
-       \r
-       public Data<T> load(T t) throws APIException;\r
-       public Data<T> load(String str) throws APIException;\r
-       public Data<T> load(InputStream is) throws APIException;\r
-       public Data<T> load(Reader rdr) throws APIException;\r
-       \r
-       public Data<T> in(TYPE type);\r
-       public Data<T> out(TYPE type);\r
-       /**\r
-        * Return the Class Type supported by this DataObject\r
-        \r
-        * @return {@literal Class<T>}\r
-        */\r
-       public Class<T> getTypeClass();\r
+    public Data<T> to(OutputStream os) throws APIException, IOException;\r
+    public Data<T> to(Writer writer) throws APIException, IOException;\r
+    \r
+    public Data<T> load(T t) throws APIException;\r
+    public Data<T> load(String str) throws APIException;\r
+    public Data<T> load(InputStream is) throws APIException;\r
+    public Data<T> load(Reader rdr) throws APIException;\r
+    \r
+    public Data<T> in(TYPE type);\r
+    public Data<T> out(TYPE type);\r
+    /**\r
+     * Return the Class Type supported by this DataObject\r
+     * \r
+     * @return {@literal Class<T>}\r
+     */\r
+    public Class<T> getTypeClass();\r
 \r
-       public void direct(InputStream input, OutputStream output) throws APIException, IOException;\r
+    public void direct(InputStream input, OutputStream output) throws APIException, IOException;\r
 \r
 \r
 }
\ No newline at end of file