The victim suffered injuries that are not believed to be life-threatening in the attack, which happened at about 2:45 a.m. in the 1300 block of Stevenson Street, near U.S. Highway 101 and Market Street, according to police.
The victim was taken to a hospital for treatment and the suspect was taken into custody, police said.