Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GoikLectures
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Goik Martin
GoikLectures
Commits
c028ae88
Commit
c028ae88
authored
11 years ago
by
Goik Martin
Browse files
Options
Downloads
Patches
Plain Diff
variable name refactoring
parent
f91c56e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ws/eclipse/Jdbc/src/main/java/sax/htmlcreate/HtmlCreateHandler.java
+3
-3
3 additions, 3 deletions
.../Jdbc/src/main/java/sax/htmlcreate/HtmlCreateHandler.java
with
3 additions
and
3 deletions
ws/eclipse/Jdbc/src/main/java/sax/htmlcreate/HtmlCreateHandler.java
+
3
−
3
View file @
c028ae88
...
...
@@ -6,7 +6,7 @@ import org.xml.sax.helpers.DefaultHandler;
public
class
HtmlCreateHandler
extends
DefaultHandler
{
String
las
tElement
;
// Save name
of last
visited element
String
curren
tElement
;
// Save name
currently
visited element
@Override
public
void
startDocument
()
throws
SAXException
{
print
(
"<html xmlns='http://www.w3.org/1999/xhtml'>\n"
...
...
@@ -19,14 +19,14 @@ public class HtmlCreateHandler extends DefaultHandler {
@Override
public
void
startElement
(
String
uri
,
String
localName
,
String
qName
,
Attributes
attributes
)
throws
SAXException
{
las
tElement
=
qName
;
curren
tElement
=
qName
;
}
@Override
public
void
characters
(
char
[]
ch
,
int
start
,
int
length
)
throws
SAXException
{
final
String
content
=
new
String
(
ch
,
start
,
length
).
trim
();
if
(
0
<
content
.
length
())
{
switch
(
las
tElement
)
{
switch
(
curren
tElement
)
{
case
"from"
:
print
(
" <dd>"
+
content
+
"</dd>\n"
+
" <dt>Recipients:</dt>\n"
+
" <dd>\n"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment