<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.transcends.co/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.transcends.co/index.php?action=history&amp;feed=atom&amp;title=READERNAME_LogFormatter.java</id>
		<title>READERNAME LogFormatter.java - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.transcends.co/index.php?action=history&amp;feed=atom&amp;title=READERNAME_LogFormatter.java"/>
		<link rel="alternate" type="text/html" href="https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;action=history"/>
		<updated>2026-04-19T13:35:24Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.1</generator>

	<entry>
		<id>https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=1113&amp;oldid=prev</id>
		<title>Jmaine at 20:01, 17 April 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=1113&amp;oldid=prev"/>
				<updated>2008-04-17T20:01:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:01, 17 April 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Other Notes==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Other Notes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also note GenericByteLogFormatter and GenericStringLogFormatter are used for two different purposes. GenericByteLogFormatter is used when the reader takes in bytes as commands and out puts them into the debug window of the IDE--like the LLRP or the Symbol. GenericStringLogFormatter&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Also note GenericByteLogFormatter and GenericStringLogFormatter are used for two different purposes. GenericByteLogFormatter is used when the reader takes in bytes as commands and out puts them into the debug window of the IDE--like the LLRP or the Symbol. GenericStringLogFormatter &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is used when the reader takes in strings as commands and out puts them into the debug window of the IDE--like the Alien or the Thing Magic.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jmaine</name></author>	</entry>

	<entry>
		<id>https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=1112&amp;oldid=prev</id>
		<title>Jmaine at 20:00, 17 April 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=1112&amp;oldid=prev"/>
				<updated>2008-04-17T20:00:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:00, 17 April 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Other Notes==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Also note GenericByteLogFormatter and GenericStringLogFormatter are used for two different purposes. GenericByteLogFormatter is used when the reader takes in bytes as commands and out puts them into the debug window of the IDE--like the LLRP or the Symbol. GenericStringLogFormatter&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jmaine</name></author>	</entry>

	<entry>
		<id>https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=892&amp;oldid=prev</id>
		<title>Kyle at 00:34, 12 February 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=892&amp;oldid=prev"/>
				<updated>2008-02-12T00:34:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 00:34, 12 February 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[category:developerDoc]][[category:emulatorDoc]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.&amp;#160; If the reader does not need to display this information in any special way, it does not have to implement this class and instead can use either the GenericByteLogFormatter or the GenericStringLogFormatter.&amp;#160; If it does need to implement this class, it should implement the LogFormatter interface.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.&amp;#160; If the reader does not need to display this information in any special way, it does not have to implement this class and instead can use either the GenericByteLogFormatter or the GenericStringLogFormatter.&amp;#160; If it does need to implement this class, it should implement the LogFormatter interface.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kyle</name></author>	</entry>

	<entry>
		<id>https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=852&amp;oldid=prev</id>
		<title>Kyle at 23:02, 8 February 2008</title>
		<link rel="alternate" type="text/html" href="https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=852&amp;oldid=prev"/>
				<updated>2008-02-08T23:02:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 23:02, 8 February 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.&amp;#160; If the reader does not need to display this information in any special way, it does not have to implement this class and instead can use either the GenericByteLogFormatter or the GenericStringLogFormatter&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.&amp;#160; If the reader does not need to display this information in any special way, it does not have to implement this class and instead can use either the GenericByteLogFormatter or the GenericStringLogFormatter&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&amp;#160; If it does need to implement this class, it should implement the LogFormatter interface.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=formatMessage=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=formatMessage=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kyle</name></author>	</entry>

	<entry>
		<id>https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=850&amp;oldid=prev</id>
		<title>Kyle: New page: This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.  If the reader does not need to display this information in any special wa...</title>
		<link rel="alternate" type="text/html" href="https://wiki.transcends.co/index.php?title=READERNAME_LogFormatter.java&amp;diff=850&amp;oldid=prev"/>
				<updated>2008-02-08T22:51:12Z</updated>
		
		<summary type="html">&lt;p&gt;New page: This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.  If the reader does not need to display this information in any special wa...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This class handles how the reader should display outgoing and incoming messages in the console logger in the IDE.  If the reader does not need to display this information in any special way, it does not have to implement this class and instead can use either the GenericByteLogFormatter or the GenericStringLogFormatter&lt;br /&gt;
&lt;br /&gt;
=formatMessage=&lt;br /&gt;
&lt;br /&gt;
This method needs to decode an incoming command into a command to be handled in the command formatter.  It should put the command into a commandObject and put the commandObject in the first slot in an arraylist and return the arraylist.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;public String formatMessage(byte[] rawMessage);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
#arg - The incoming or outgoing message that needs to be turned into a log message&lt;br /&gt;
&lt;br /&gt;
==Return Value==&lt;br /&gt;
A string that will be printed in the console&lt;br /&gt;
&lt;br /&gt;
==Reference Implementation==&lt;br /&gt;
This is the log formatter for the llrp reader.  It displays both the bytes and the xml representation of the messages.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	public String formatMessage(byte[] rawMessage) {&lt;br /&gt;
		&lt;br /&gt;
		ByteArrayInputStream is = new ByteArrayInputStream(rawMessage);&lt;br /&gt;
		String bytes = ByteAndHexConvertingUtility.toHexString(rawMessage);&lt;br /&gt;
		try {&lt;br /&gt;
			Message m = Message.receive(is);&lt;br /&gt;
			return &amp;quot;\nBYTES: \n&amp;quot; + bytes + &amp;quot;\nXML: \n&amp;quot; + m.toXMLString();&lt;br /&gt;
		} catch (Exception e) {&lt;br /&gt;
			logger.error(&amp;quot;Cannot serialize the message&amp;quot;);&lt;br /&gt;
			return &amp;quot;\nBytes: &amp;quot; + bytes;&lt;br /&gt;
		} &lt;br /&gt;
	}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kyle</name></author>	</entry>

	</feed>