Changeset b6bd497 for apps/ministreaming


Ignore:
Timestamp:
Dec 20, 2015 2:11:42 AM (5 years ago)
Author:
z3r0fox <z3r0fox@…>
Branches:
master
Children:
074c5aa1
Parents:
2246e21
Message:

Replaces instances of getBytes() in apps classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/demo/net/i2p/client/streaming/StreamSinkServer.java

    r2246e21 rb6bd497  
    1212import net.i2p.I2PException;
    1313import net.i2p.data.DataFormatException;
     14import net.i2p.data.DataHelper;
    1415import net.i2p.data.Destination;
    1516import net.i2p.util.I2PThread;
     
    142143                        _log.debug("read and wrote " + read + " (" + written + ")");
    143144                }
    144                 fos.write(("written: [" + written + "]\n").getBytes());
     145                fos.write((DataHelper.getUTF8("written: [" + written + "]\n")));
    145146                long lifetime = System.currentTimeMillis() - start;
    146147                _log.info("Got EOF from client socket [written=" + written + " lifetime=" + lifetime + "]");
Note: See TracChangeset for help on using the changeset viewer.