473,789 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URL-object from a bytearray

Hello,

I'm working with dynamic classloading and have encountered a problem
when it comes to defining an URL for a file that is available through
a bytearray representing a jar-file. The file in this case is a
gif-file. I've implemented my own class loader which extends the java
ClassLoader and overrides some methods for deriving classes from the
jar-bytearray. Is there anyone who have any suggestion on how to
create an URL-object from a bytearray?

Regards,
Kristina
Jul 17 '05 #1
0 2059

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2952
by: Phil Powell | last post by:
I am having trouble retrieving URLs using curl for PHP whereby the URL requires a cookie to produce proper data. I wrote a wrapper class called Timer that will time the execution/download of a remote URL and it uses curl as its means of obtaining the URL: class Timer extends View { /** * @access private
0
1822
by: Irmen de Jong | last post by:
QOTW: "Giving full access rights to a secretary or new programmer ought to insure an occasional random file deletion." -- Raymond Hettinger "I always use join, but that's probably because that method is more likely to run code that I once wrote. Never trust code written by a man who uses defines to create his own C syntax." -- Fredrik Lundh Discussion ----------
0
1427
by: Irmen de Jong | last post by:
QOTW: "To make the instructions even friendlier it would also help if 'but Whatever You Do DON'T UNZIP THE FREAKIN' THING - This Means YOU John Latter!' were in large, bold, and underlined type. And preferably a different colour." -- John Latter, on Python's install instructions " What's more, these are three of Python's greatest *strengths*. We resist all attempts to change these, and we (at least I) avoid other languages because...
0
516
by: Irmen de Jong | last post by:
QOTW: "What can I do with Python that I can't do with C#? You can go home on time at the end of the day." -- Daniel Klein "Python lends itself to playing with it and to discussing the merits of code snippets with other people. It's one of the 'language' languages, in that it's suitable for people to communicate using it, and it can even be used as tool to check ones thoughts." -- Anton Vredegoor Discussion
0
1364
by: Raymond Hettinger | last post by:
QOTW: "You're only overlooking the consequences of an infinite amount of information <wink>." -- Tim Peters on why the bitwise-not operator is equivalent to -(n+1). "Perl, Python, Ruby and Tcl are the four dynamic programming languages that get the most publicity as open source projects, and I think they have a lot more in common than they differ." -- Guido van Rossum Discussion
0
1341
by: Raymond Hettinger | last post by:
QOTW: "All that rigid type safety and data hiding is like wearing army boots on the beach: nothing can bite your toes, but golly don't it feel good to just toss 'em and run barefoot." -- David Pinn QOTW: "... this is Usenet. No matter what you write, somebody is going to interpret it as a proposal to cook and eat babies." -- Grant Edwards QOTW: "I assume you mean instance.getthing() because writing self.getthing() has unclear...
0
1324
by: Raymond Hettinger | last post by:
QOTW: "Of course it's still an ugly idiom. But there's a distinction between ugly-but-works and ugly-and-wrong." -- Michael Chermside commenting on one of the standard ways to simulate an if-then-else expression. "This is the nature of Usenet and threaded discussions, where one person makes several comments, some less on-topic that the rest, and another person picks up on those less on-topic comments and ignores the more on-topic ones. ...
0
1517
by: Raymond Hettinger | last post by:
QOTW: "Python seems to encourage and reward incremental effort, and it leads one to explore extensions and improvements to programs because the language makes it relatively easy to see how to do the extensions." -- Ron Stephens "When writing programs in Python, write Python programs" -- Jeff Epler's advice to those forcing themselves to write code using idioms learned in other languages "Oh come on, now, just because Java does it..."...
1
1571
by: Raymond Hettinger | last post by:
QOTW: "the DOM API is designed for consultants, not for humans or computers" -- Fredrik Lundh giving solace to a confused DOM API user QOTW: "Python enjoys making tradeoffs that drive *someone* crazy <wink>" -- Michael Hudson's signature line attributed to Tim Peters Discussion ---------- Alex Martelli shows the classic example for the "for-else"
0
1195
by: Cameron Laird | last post by:
QOTW: "In the context of storage, there are three types of applications ...: relational databases, files and objects such as photographs, and system backups that have to be easy to retrieve." Mark Lewis, CTO of EMC http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2914178,00.html "And surprisingly enough, I rarely use regular expressions any more. There are usually simpler and better ways of doing it for most problems." Max M...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5405
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5540
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4078
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2898
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.