diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Framework/Servers/BinaryStreamHandler.cs | |
parent | * Deleted .user file (diff) | |
download | opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/BinaryStreamHandler.cs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/OpenSim/Framework/Servers/BinaryStreamHandler.cs b/OpenSim/Framework/Servers/BinaryStreamHandler.cs index 4cc6fc7..65fa3c9 100644 --- a/OpenSim/Framework/Servers/BinaryStreamHandler.cs +++ b/OpenSim/Framework/Servers/BinaryStreamHandler.cs | |||
@@ -26,10 +26,8 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using System.IO; | 29 | using System.IO; |
30 | using System.Text; | ||
33 | 31 | ||
34 | namespace OpenSim.Framework.Servers | 32 | namespace OpenSim.Framework.Servers |
35 | { | 33 | { |
@@ -37,14 +35,14 @@ namespace OpenSim.Framework.Servers | |||
37 | 35 | ||
38 | public class BinaryStreamHandler : BaseStreamHandler | 36 | public class BinaryStreamHandler : BaseStreamHandler |
39 | { | 37 | { |
40 | BinaryMethod m_method; | 38 | private BinaryMethod m_method; |
41 | 39 | ||
42 | override public byte[] Handle(string path, Stream request) | 40 | public override byte[] Handle(string path, Stream request) |
43 | { | 41 | { |
44 | byte[] data = ReadFully(request); | 42 | byte[] data = ReadFully(request); |
45 | string param = GetParam(path); | 43 | string param = GetParam(path); |
46 | string responseString = m_method(data, path, param); | 44 | string responseString = m_method(data, path, param); |
47 | 45 | ||
48 | return Encoding.UTF8.GetBytes(responseString); | 46 | return Encoding.UTF8.GetBytes(responseString); |
49 | } | 47 | } |
50 | 48 | ||
@@ -67,11 +65,10 @@ namespace OpenSim.Framework.Servers | |||
67 | { | 65 | { |
68 | return ms.ToArray(); | 66 | return ms.ToArray(); |
69 | } | 67 | } |
70 | 68 | ||
71 | ms.Write(buffer, 0, read); | 69 | ms.Write(buffer, 0, read); |
72 | } | 70 | } |
73 | } | 71 | } |
74 | } | 72 | } |
75 | } | 73 | } |
76 | 74 | } \ No newline at end of file | |
77 | } | ||