How does the clipboard work in Windows?
What is its data structure? Is it XML-based? How can it distinguish between different cont开发者_如何学JAVAent types, for example text, image, files etc.?
It is a system wide bit bucket, which means it just holds a sequence of bytes and an integer value (a windows atom) which describes it's format - but does not ensure that the byte sequence is really this format.
The only feature other then this is that an application can decide if it wants the system to store the byte sequence or if the application keeps the data itself and only provide it when someone is requesting it.
So as you see it is an API and not a data structure.
精彩评论