[jdom-interest] java.net.MalformedURLException
Fedor Smirnoff
info at olnix.com
Tue Oct 7 13:18:11 PDT 2003
Hi,
While:
SAXBuilder builder = new SAXBuilder(false);
Document doc = builder.build(bf.toString());
Where bf is a StringBuffer populated by readLine() from:
BufferedReader in = new BufferedReader(new
InputStreamReader((result.getDataStream())));
I get Java err: java.net.MalformedURLException: no protocol:
However if I create Document from file instead of the String, there is
no error. Any ideas? Case here is that I don't want to create a file
specifically since I can InputStream from the remote server. Thank you
very much. I included the full error with xml content below.
Java err: java.net.MalformedURLException: no protocol: <?xml
version="1.0" encoding="UTF-8"?>
<imageInfo>
<psd colorSpace="RGB" copyright="" height="98" width="504">
<optimizationSettings>
<GIFFormat numColors="256" lossy="0" matteColor="#FFFFFF"
noMatteColor="false" ditherAlgorithm="diffusion" ditherPercent="100"
webShiftPercent="0" reductionAlgorithm="selective" transparency="true"
interlaced="false" autoReduce="false" rolloverMasterPalette="false" />
</optimizationSettings>
<variableSubstitutionCommands>
<setVariable varName="txt" docRef="id('1889580023')" category=""
trait="textcontent" data="data" />
<setVariable varName="vis" docRef="id('1889580023')" category=""
trait="visibility" data="data" />
<setVariable varName="defaultTextVariable"
docRef="id('1889613642')" category="" trait="textcontent" data="data" />
</variableSubstitutionCommands>
<layerSet name="logoMin">
<layer bottom="0" right="0" left="0" top="0" type="text"
name="Layer 44">
<textFlow>
<flow adobe-fractional-widths="false">
<p text-align="left" text-align-last="auto" hyphenate="true"
start-indent="0.0" end-indent="0.0" text-indent="0.0" space-before="0.0"
space-after="0.0" adobe-hyphenate-word-size="8"
hyphenation-remain-character-count="3"
hyphenation-push-character-count="3" adobe-consecutive-hyphens="2"
adobe-hyphenation-zone="36.0" adobe-hyphenate-capitalized="true"
adobe-justification-word-spacing-min="0.80000"
adobe-justification-word-spacing-desired="1.0"
adobe-justification-word-spacing-max="1.33000"
adobe-justification-letter-spacing-min="0.0"
adobe-justification-letter-spacing-desired="0.0"
adobe-justification-letter-spacing-max="0.0"
adobe-justification-glyph-scaling-min="1.0"
adobe-justification-glyph-scaling-desired="1.0"
adobe-justification-glyph-scaling-max="1.0"
adobe-auto-leading-percent="1.20000" adobe-leading-type="roman-leading"
adobe-kinsoku-set="none" adobe-preferred-kinsoku-order="push-in"
adobe-mojikumi-set="none" adobe-hanging-roman="false"
adobe-burasagari="false" adobe-every-line-composer="false">
<span font-family="'Verdana-Bold'" font-size="48.0"
adobe-faux-bold="false" adobe-faux-italic="false" letter-spacing="20"
kerning="auto" line-height="30.15000" baseline-shift="0.0"
text-decoration="none" font-variant="normal" text-transform="none"
fill="#4a66c2" adobe-horizontal-scale="1.0" adobe-vertical-scale="1.0"
adobe-y-underline="right" adobe-ligatures="true"
adobe-old-style-figures="false" adobe-proportional-numbers="true"
adobe-tsume="0.0" adobe-no-break="false"
adobe-font-baseline-option="normal"
adobe-baseline-direction="with-stream" /></p>
</flow>
<region writing-mode="lr">
<path d="M0.0,0.0v113.0h77.0v-113.0h-77.0z" />
</region>
<fonts>
<font adobe-font-name="'Verdana-Bold'" adobe-font-script="0"
adobe-font-technology="1" adobe-font-synthetic="0" />
</fonts>
</textFlow>
</layer>
<layer bottom="77" right="433" left="31" top="39" type="text"
name="logo">
<textFlow>
<flow adobe-fractional-widths="false">
<p text-align="left" text-align-last="auto" hyphenate="true"
start-indent="0.0" end-indent="0.0" text-indent="0.0" space-before="0.0"
space-after="0.0" adobe-hyphenate-word-size="8"
hyphenation-remain-character-count="3"
hyphenation-push-character-count="3" adobe-consecutive-hyphens="2"
adobe-hyphenation-zone="36.0" adobe-hyphenate-capitalized="true"
adobe-justification-word-spacing-min="0.80000"
adobe-justification-word-spacing-desired="1.0"
adobe-justification-word-spacing-max="1.33000"
adobe-justification-letter-spacing-min="0.0"
adobe-justification-letter-spacing-desired="0.0"
adobe-justification-letter-spacing-max="0.0"
adobe-justification-glyph-scaling-min="1.0"
adobe-justification-glyph-scaling-desired="1.0"
adobe-justification-glyph-scaling-max="1.0"
adobe-auto-leading-percent="1.20000" adobe-leading-type="roman-leading"
adobe-kinsoku-set="none" adobe-preferred-kinsoku-order="push-in"
adobe-mojikumi-set="none" adobe-hanging-roman="false"
adobe-burasagari="false" adobe-every-line-composer="false">
<span font-family="'Verdana-Bold'" font-size="52.78225"
adobe-faux-bold="false" adobe-faux-italic="false" letter-spacing="20"
kerning="auto" line-height="33.15385" baseline-shift="0.0"
text-decoration="none" font-variant="normal" text-transform="none"
fill="#4a66c2" adobe-horizontal-scale="1.0" adobe-vertical-scale="1.0"
adobe-y-underline="right" adobe-ligatures="true"
adobe-old-style-figures="false" adobe-proportional-numbers="true"
adobe-tsume="0.0" adobe-no-break="false"
adobe-font-baseline-option="normal"
adobe-baseline-direction="with-stream">Amanda Johns</span>
</p>
</flow>
<region writing-mode="lr">
<path d="M0.0,0.0" />
</region>
<fonts>
<font adobe-font-name="'Verdana-Bold'" adobe-font-script="0"
adobe-font-technology="1" adobe-font-synthetic="0" />
</fonts>
</textFlow>
</layer>
<layer bottom="98" right="516" left="10" top="17" type="pixel"
name="Layer 43" />
</layerSet>
<layerSet name="logoMax">
<layer bottom="0" right="0" left="0" top="0" type="text"
name="Layer 44">
<textFlow>
<flow adobe-fractional-widths="false">
<p text-align="left" text-align-last="auto" hyphenate="true"
start-indent="0.0" end-indent="0.0" text-indent="0.0" space-before="0.0"
space-after="0.0" adobe-hyphenate-word-size="8"
hyphenation-remain-character-count="3"
hyphenation-push-character-count="3" adobe-consecutive-hyphens="2"
adobe-hyphenation-zone="36.0" adobe-hyphenate-capitalized="true"
adobe-justification-word-spacing-min="0.80000"
adobe-justification-word-spacing-desired="1.0"
adobe-justification-word-spacing-max="1.33000"
adobe-justification-letter-spacing-min="0.0"
adobe-justification-letter-spacing-desired="0.0"
adobe-justification-letter-spacing-max="0.0"
adobe-justification-glyph-scaling-min="1.0"
adobe-justification-glyph-scaling-desired="1.0"
adobe-justification-glyph-scaling-max="1.0"
adobe-auto-leading-percent="1.20000" adobe-leading-type="roman-leading"
adobe-kinsoku-set="none" adobe-preferred-kinsoku-order="push-in"
adobe-mojikumi-set="none" adobe-hanging-roman="false"
adobe-burasagari="false" adobe-every-line-composer="false">
<span font-family="'Verdana-Bold'" font-size="48.0"
adobe-faux-bold="false" adobe-faux-italic="false" letter-spacing="20"
kerning="auto" line-height="30.15000" baseline-shift="0.0"
text-decoration="none" font-variant="normal" text-transform="none"
fill="#4a66c2" adobe-horizontal-scale="1.0" adobe-vertical-scale="1.0"
adobe-y-underline="right" adobe-ligatures="true"
adobe-old-style-figures="false" adobe-proportional-numbers="true"
adobe-tsume="0.0" adobe-no-break="false"
adobe-font-baseline-option="normal"
adobe-baseline-direction="with-stream" /></p>
</flow>
<region writing-mode="lr">
<path d="M0.0,0.0v113.0h77.0v-113.0h-77.0z" />
</region>
<fonts>
<font adobe-font-name="'Verdana-Bold'"
adobe-font-script="0" adobe-font-technology="1" adobe-font-synthetic="0"
/>
</fonts>
</textFlow>
</layer>
<layer bottom="77" right="433" left="31" top="39" type="text"
name="logo">
<textFlow>
<flow adobe-fractional-widths="false">
<p text-align="left" text-align-last="auto" hyphenate="true"
start-indent="0.0" end-indent="0.0" text-indent="0.0" space-before="0.0"
space-after="0.0" adobe-hyphenate-word-size="8"
hyphenation-remain-character-count="3"
hyphenation-push-character-count="3" adobe-consecutive-hyphens="2"
adobe-hyphenation-zone="36.0" adobe-hyphenate-capitalized="true"
adobe-justification-word-spacing-min="0.80000"
adobe-justification-word-spacing-desired="1.0"
adobe-justification-word-spacing-max="1.33000"
adobe-justification-letter-spacing-min="0.0"
adobe-justification-letter-spacing-desired="0.0"
adobe-justification-letter-spacing-max="0.0"
adobe-justification-glyph-scaling-min="1.0"
adobe-justification-glyph-scaling-desired="1.0"
adobe-justification-glyph-scaling-max="1.0"
adobe-auto-leading-percent="1.20000" adobe-leading-type="roman-leading"
adobe-kinsoku-set="none" adobe-preferred-kinsoku-order="push-in"
adobe-mojikumi-set="none" adobe-hanging-roman="false"
adobe-burasagari="false" adobe-every-line-composer="false">
<span font-family="'Verdana-Bold'" font-size="52.78225"
adobe-faux-bold="false" adobe-faux-italic="false" letter-spacing="20"
kerning="auto" line-height="33.15385" baseline-shift="0.0"
text-decoration="none" font-variant="normal" text-transform="none"
fill="#4a66c2" adobe-horizontal-scale="1.0" adobe-vertical-scale="1.0"
adobe-y-underline="right" adobe-ligatures="true"
adobe-old-style-figures="false" adobe-proportional-numbers="true"
adobe-tsume="0.0" adobe-no-break="false"
adobe-font-baseline-option="normal"
adobe-baseline-direction="with-stream">Amanda Johns</span>
</p>
</flow>
<region writing-mode="lr">
<path d="M0.0,0.0" />
</region>
<fonts>
<font adobe-font-name="'Verdana-Bold'"
adobe-font-script="0" adobe-font-technology="1" adobe-font-synthetic="0"
/>
</fonts>
</textFlow>
</layer>
<layer bottom="98" right="516" left="10" top="17" type="pixel"
name="Layer 43" />
</layerSet>
<layer bottom="0" right="0" left="0" top="0" type="pixel"
name="Layer 1" />
</psd>
</imageInfo>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20031007/a5dd314d/attachment.htm
More information about the jdom-interest
mailing list