mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
Writer -> PrintWriter, Stream -> PrintStream
This commit is contained in:
parent
1ab62778f7
commit
85b9a3afc4
@ -84,14 +84,10 @@
|
|||||||
</Methods>
|
</Methods>
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property>
|
<Property>
|
||||||
<Imports>
|
<Java>System.out</Java>
|
||||||
<Import>java.io.PrintWriter</Import>
|
|
||||||
</Imports>
|
|
||||||
<Java>new PrintWriter(System.out)</Java>
|
|
||||||
<Type>System.IO.TextWriter</Type>
|
<Type>System.IO.TextWriter</Type>
|
||||||
<Name>Out</Name>
|
<Name>Out</Name>
|
||||||
<Get>new PrintWriter(System.out)</Get>
|
<Get>System.out</Get>
|
||||||
<Set>${this:16}.setOut(${value})</Set>
|
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Events />
|
<Events />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file is
|
This file is
|
||||||
@ -18,12 +18,12 @@
|
|||||||
<Methods>
|
<Methods>
|
||||||
<Method>
|
<Method>
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>java.io.BufferedWriter</Import>
|
<Import>java.io.PrintWriter</Import>
|
||||||
<Import>java.io.OutputStreamWriter</Import>
|
<Import>java.io.OutputStreamWriter</Import>
|
||||||
<Import>java.io.FileOutputStream</Import>
|
<Import>java.io.FileOutputStream</Import>
|
||||||
<Import>java.nio.charset.Charset</Import>
|
<Import>java.nio.charset.Charset</Import>
|
||||||
</Imports>
|
</Imports>
|
||||||
<Java>new BufferedWriter(new OutputStreamWriter(new FileOutputStream(${path}), Charset.forName("UTF-8")))</Java>
|
<Java>new PrintWriter(new OutputStreamWriter(new FileOutputStream(${path}), Charset.forName("UTF-8")))</Java>
|
||||||
<Params>
|
<Params>
|
||||||
<Param>
|
<Param>
|
||||||
<Type>System.String</Type>
|
<Type>System.String</Type>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file is
|
This file is
|
||||||
@ -9,9 +9,9 @@
|
|||||||
-->
|
-->
|
||||||
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
|
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>java.io.BufferedWriter</Import>
|
<Import>java.io.PrintWriter</Import>
|
||||||
</Imports>
|
</Imports>
|
||||||
<Java>BufferedWriter</Java>
|
<Java>PrintWriter</Java>
|
||||||
<Name>System.IO.StreamWriter</Name>
|
<Name>System.IO.StreamWriter</Name>
|
||||||
<Uses />
|
<Uses />
|
||||||
<Inherits>
|
<Inherits>
|
||||||
@ -24,10 +24,10 @@
|
|||||||
<Constructors>
|
<Constructors>
|
||||||
<Constructor>
|
<Constructor>
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>java.io.BufferedWriter</Import>
|
<Import>java.io.PrintWriter</Import>
|
||||||
<Import>java.io.FileWriter</Import>
|
<Import>java.io.FileWriter</Import>
|
||||||
</Imports>
|
</Imports>
|
||||||
<Java>new BufferedWriter(new FileWriter(${path}))</Java>
|
<Java>new PrintWriter(new FileWriter(${path}), true)</Java>
|
||||||
<Params>
|
<Params>
|
||||||
<Param>
|
<Param>
|
||||||
<Type>System.String</Type>
|
<Type>System.String</Type>
|
||||||
@ -37,10 +37,10 @@
|
|||||||
</Constructor>
|
</Constructor>
|
||||||
<Constructor>
|
<Constructor>
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>java.io.BufferedWriter</Import>
|
<Import>java.io.PrintWriter</Import>
|
||||||
<Import>java.io.FileWriter</Import>
|
<Import>java.io.FileWriter</Import>
|
||||||
</Imports>
|
</Imports>
|
||||||
<Java>new BufferedWriter(new FileWriter(${path},${append}))</Java>
|
<Java>new PrintWriter(new FileWriter(${path},${append}),true)</Java>
|
||||||
<Params>
|
<Params>
|
||||||
<Param>
|
<Param>
|
||||||
<Type>System.String</Type>
|
<Type>System.String</Type>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
This file is
|
This file is
|
||||||
@ -9,9 +9,9 @@
|
|||||||
-->
|
-->
|
||||||
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
|
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
|
||||||
<Imports>
|
<Imports>
|
||||||
<Import>java.io.Writer</Import>
|
<Import>java.io.PrintStream</Import>
|
||||||
</Imports>
|
</Imports>
|
||||||
<Java>Writer</Java>
|
<Java>PrintStream</Java>
|
||||||
<Name>System.IO.TextWriter</Name>
|
<Name>System.IO.TextWriter</Name>
|
||||||
<Uses />
|
<Uses />
|
||||||
<Inherits>
|
<Inherits>
|
||||||
@ -27,7 +27,7 @@
|
|||||||
</Method>
|
</Method>
|
||||||
<Method>
|
<Method>
|
||||||
<Imports />
|
<Imports />
|
||||||
<Java>${this:16}.write(${arg} + System.getProperty("line.separator"))</Java>
|
<Java>${this:16}.println(${arg})</Java>
|
||||||
<Params>
|
<Params>
|
||||||
<Param>
|
<Param>
|
||||||
<Type>System.Object</Type>
|
<Type>System.Object</Type>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
</Method>
|
</Method>
|
||||||
<Method>
|
<Method>
|
||||||
<Imports />
|
<Imports />
|
||||||
<Java>${this:16}.write(${arg})</Java>
|
<Java>${this:16}.print(${arg})</Java>
|
||||||
<Params>
|
<Params>
|
||||||
<Param>
|
<Param>
|
||||||
<Type>System.Object</Type>
|
<Type>System.Object</Type>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user