Paul dearrt

Greenhorn
+ Follow
since Apr 22, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Paul dearrt

Paul Clapham wrote:I would start by finding out what "doesn't work" means. Have a look at our FAQ entry ItDoesntWorkIsUseless for tips on how to do that.

Also, I wrapped your posted code in the "Code" tags for you. See how much easier it is to read now? To do that, just select your code after you paste it into the posting box and click the "Code" button you'll see above the box.



Im sorry, I was in hurry.
Doesnt work in this case means: dont formatting text; it only print to PrintStream, without formatting.

12 years ago
Hi,
how i can override method PrintStream format(format, args)?

I made
and System.setOut(ps);

but method format doesnt work, any idea?
12 years ago
How I create object of this class and use it on document? I was searching on the internet but nothing..

class:
http://www.jopendocument.org/docs/org/jopendocument/io/SaxStylesUnmarshaller.html
code, how use SaxStylesUnmarshaller to ODT document?

File s = new File(cestaSouboru);
ODPackage p = new ODPackage(s);
SaxStylesUnmarshaller sax = new SaxStylesUnmarshaller();
this compile and buil allright, but, how i can use saxs methods on concrait document?
13 years ago

Ernest Friedman-Hill wrote:Well, my friend, the very constructor you link to in your first post is the one that takes an OpenDocument as a constructor argument. It is a public class, and it's a public constructor. Altogether, this suggests that what I propose is not only entirely possible, but absolutely doable. If something's going wrong, it's possible that

1) You don't have this library available to the compiler (i.e., not on class path)
2) You're using a different version of the library than the one documented there
3) You've got other classes with the same names, and the compiler is importing the wrong ones
4) Something else is wrong.

In any case, if you were to share your actual compiler error messages, I am sure we could get you back on the right path.



At first, thank you very much. For yout time, responses...
It seems I linked to wrong document... this is right:
http://www.jopendocument.org/docs/org/jopendocument/io/SaxStylesUnmarshaller.html


13 years ago

Ernest Friedman-Hill wrote:Hi,

Welcome to JavaRanch!

Well, that class takes an OpenDocument as a constructor argument, and OpenDocument, in turn, has a public constructor that takes a File. So in theory,



Now, whether this makes any sense to do, I can't tell you -- the documentation for this library seems very weak, and I don't know if these classes are intended to be used this way.



Im afraid, that it doesn work, i couldnt give Opendocument as a parameter to SaxStyleUnmarshellers constructor
13 years ago
How I create object of this class and use it on document? I was searchin on the internet but nothing.. thanks my piece of code...

class:
http://www.jopendocument.org/docs/org/jopendocument/io/SaxContentUnmarshaller.html#SaxContentUnmarshaller(org.jopendocument.model.OpenDocument)

code, how use SaxStylesUnmarshaller to ODT document?

File s = new File(cestaSouboru);
ODPackage p = new ODPackage(s);
SaxStylesUnmarshaller sax = new SaxStylesUnmarshaller();
13 years ago