Struct jaded::Parser [−][src]
The main parser class
// Input can be anything that implements Read, eg file or tcp stream let sample = File::open("sample")?; // Stream is checked at creation to ensure stream is java serialization let mut parser = Parser::new(sample)?; // Objects are read from stream in turn let obj = parser.read()?; println!("Read Object: {:?}", obj); println!("Class name: {}", obj.value().object_data().class_name());
Implementations
impl<T: Read> Parser<T>
[src]
pub fn new(source: T) -> Result<Self>
[src]
Create a parser to read Java objects from a serial stream
pub fn read(&mut self) -> Result<Content>
[src]
Read the next item from the Java stream
Auto Trait Implementations
impl<T> RefUnwindSafe for Parser<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Parser<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Parser<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Parser<T>
[src]
impl<T> UnwindSafe for Parser<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,