1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

85 lines
2.5 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file://C:/Documents%20and%20Settings/kevin.glynn/My%20Documents/CS2JLibrary/Translation.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>System.IO.Stream</Name>
<Inherits>
<Type>System.IO.IDisposable</Type>
</Inherits>
<Imports>
<Import>java.io.*</Import>
</Imports>
<Java>InputStream</Java>
<Constructors>
<Constructor>
<Params>
<Param>
<Type>System.String</Type>
<Name>path</Name>
</Param>
</Params>
<Imports>
<Import>java.io.*</Import>
</Imports>
<Java>new FileInputStream(${path})</Java>
</Constructor>
</Constructors>
<Properties>
<Property>
<Type>System.Int64</Type>
<Name>Position</Name>
<Imports>
<Import>RusticiSoftware.JavaSupport.Unsupported</Import>
</Imports>
<Get>Unsupported.throwUnsupported("${this}.Position")</Get>
<Set>Unsupported.throwUnsupported("${this}.Position = ${value}")</Set>
</Property>
</Properties>
<Methods>
<Method>
<Return>System.Void</Return>
<Name>Close</Name>
<Java>${this}.close()</Java>
</Method>
<Method>
<Return>System.Int32</Return>
<Name>Read</Name>
<Params>
<Param>
<Type>System.Byte[]</Type>
<Name>buffer</Name>
</Param>
<Param>
<Type>System.Int32</Type>
<Name>offset</Name>
</Param>
<Param>
<Type>System.Int32</Type>
<Name>count</Name>
</Param>
</Params>
<Java>${this}.read(${buffer},${offset},${count})</Java>
</Method>
<Method>
<!-- Including here even though write is not appropriate for "InputStream", so it
can be found for subclasses of System.IO.Stream that translate to other java stream types-->
<Return>System.Void</Return>
<Name>Write</Name>
<Params>
<Param>
<Type>System.Byte[]</Type>
<Name>buffer</Name>
</Param>
<Param>
<Type>System.Int32</Type>
<Name>offset</Name>
</Param>
<Param>
<Type>System.Int32</Type>
<Name>count</Name>
</Param>
</Params>
<Java>${this}.write(${buffer},${offset},${count})</Java>
</Method>
</Methods>
</Class>