<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FJ2ME%2FFile_Stream</id>
		<title>Java Tutorial/J2ME/File Stream - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FJ2ME%2FFile_Stream"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/J2ME/File_Stream&amp;action=history"/>
		<updated>2026-04-21T22:57:35Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/J2ME/File_Stream&amp;diff=4085&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/J2ME/File_Stream&amp;diff=4085&amp;oldid=prev"/>
				<updated>2010-06-01T04:58:06Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 04:58, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_Tutorial/J2ME/File_Stream&amp;diff=4084&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_Tutorial/J2ME/File_Stream&amp;diff=4084&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  Read file content to TextBox ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import java.io.InputStream;&lt;br /&gt;
import java.io.InputStreamReader;&lt;br /&gt;
import javax.microedition.lcdui.Display;&lt;br /&gt;
import javax.microedition.lcdui.TextBox;&lt;br /&gt;
import javax.microedition.lcdui.TextField;&lt;br /&gt;
import javax.microedition.lcdui.Ticker;&lt;br /&gt;
import javax.microedition.midlet.MIDlet;&lt;br /&gt;
public class TextBoxMIDlet extends MIDlet {&lt;br /&gt;
  private static final int MAX_TEXT_SIZE = 64;&lt;br /&gt;
  protected TextBox textBox;&lt;br /&gt;
  protected Display display;&lt;br /&gt;
  protected void startApp() {&lt;br /&gt;
    String str = null;&lt;br /&gt;
    try {&lt;br /&gt;
      InputStream is = getClass().getResourceAsStream(&amp;quot;resources/text.txt&amp;quot;);&lt;br /&gt;
      InputStreamReader r = new InputStreamReader(is);&lt;br /&gt;
      char[] buffer = new char[32];&lt;br /&gt;
      StringBuffer sb = new StringBuffer();&lt;br /&gt;
      int count;&lt;br /&gt;
      while ((count = r.read(buffer, 0, buffer.length)) &amp;gt; -1) {&lt;br /&gt;
        sb.append(buffer, 0, count);&lt;br /&gt;
      }&lt;br /&gt;
      str = sb.toString();&lt;br /&gt;
    } catch (IOException ex) {&lt;br /&gt;
      str = &amp;quot;Failed to load text&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    textBox = new TextBox(&amp;quot;TextBox Example&amp;quot;, str, MAX_TEXT_SIZE, TextField.ANY);&lt;br /&gt;
    Ticker ticker = new Ticker(&amp;quot;This is a ticker...&amp;quot;);&lt;br /&gt;
    textBox.setTicker(ticker);&lt;br /&gt;
    display = Display.getDisplay(this);&lt;br /&gt;
    display.setCurrent(textBox);&lt;br /&gt;
  }&lt;br /&gt;
  protected void pauseApp() {&lt;br /&gt;
  }&lt;br /&gt;
  protected void destroyApp(boolean unconditional) {&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>