You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2009/03/13 21:26:40 UTC

svn commit: r753385 - /webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/format/PlainTextFormatter.java

Author: veithen
Date: Fri Mar 13 20:26:26 2009
New Revision: 753385

URL: http://svn.apache.org/viewvc?rev=753385&view=rev
Log:
Replaced tabs by spaces.

Modified:
    webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/format/PlainTextFormatter.java

Modified: webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/format/PlainTextFormatter.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/format/PlainTextFormatter.java?rev=753385&r1=753384&r2=753385&view=diff
==============================================================================
--- webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/format/PlainTextFormatter.java (original)
+++ webservices/commons/trunk/modules/transport/modules/base/src/main/java/org/apache/axis2/format/PlainTextFormatter.java Fri Mar 13 20:26:26 2009
@@ -39,23 +39,23 @@
 public class PlainTextFormatter implements MessageFormatterEx {
 
     public byte[] getBytes(MessageContext messageContext, OMOutputFormat format) throws AxisFault {
-    	ByteArrayOutputStream baos = new ByteArrayOutputStream();
-    	writeTo(messageContext, format, baos, true);
-    	return baos.toByteArray();
+        ByteArrayOutputStream baos = new ByteArrayOutputStream();
+        writeTo(messageContext, format, baos, true);
+        return baos.toByteArray();
     }
 
     public void writeTo(MessageContext messageContext, OMOutputFormat format, OutputStream outputStream, boolean preserve) throws AxisFault {
         OMElement textElt = messageContext.getEnvelope().getBody().getFirstElement();
         if (BaseConstants.DEFAULT_TEXT_WRAPPER.equals(textElt.getQName())) {
-	        try {
-		        Writer out = new OutputStreamWriter(outputStream, format.getCharSetEncoding());
-		        ElementHelper.writeTextTo(textElt, out, preserve);
+            try {
+                Writer out = new OutputStreamWriter(outputStream, format.getCharSetEncoding());
+                ElementHelper.writeTextTo(textElt, out, preserve);
                 out.flush();
-	        } catch (IOException e) {
-	            throw new AxisFault("Error writing text message to stream", e);
-	        } catch (XMLStreamException e) {
-				throw new AxisFault("Error extracting the text payload from the message", e);
-			}
+            } catch (IOException e) {
+                throw new AxisFault("Error writing text message to stream", e);
+            } catch (XMLStreamException e) {
+                throw new AxisFault("Error extracting the text payload from the message", e);
+            }
         }
     }